SqlBatchCommand 類別

定義

SqlBatchCommand 允許在 SqlBatch 中執行多個 SQL 命令。

public ref class SqlBatchCommand
public ref class SqlBatchCommand : System::Data::Common::DbBatchCommand
public class SqlBatchCommand
public class SqlBatchCommand : System.Data.Common.DbBatchCommand
type SqlBatchCommand = class
type SqlBatchCommand = class
    inherit DbBatchCommand
Public Class SqlBatchCommand
Public Class SqlBatchCommand
Inherits DbBatchCommand
繼承
SqlBatchCommand
繼承
SqlBatchCommand

建構函式

SqlBatchCommand()

初始化新的 SqlBatchCommand

SqlBatchCommand(String, CommandType, IEnumerable<SqlParameter>, SqlCommandColumnEncryptionSetting)

初始化新的 SqlBatchCommand

屬性

CanCreateParameter

傳回是否 CreateParameter() 實作 方法。

ColumnEncryptionSetting

目前未實作。 加密設定。 如需詳細資訊,請參閱 Always Encrypted

CommandBehavior

其中一個 CommandBehavior 值,表示陳述式執行和資料擷取的選項。

CommandText

取得或設定要對資料來源執行的文字命令。

CommandType

取得或設定如何 CommandText 解譯屬性。

DbParameterCollection

取得 SqlParameter 物件的集合。

Parameters

取得 SqlParameterCollection

RecordsAffected

藉由執行這個特定 SqlBatchCommand,取得變更、插入或刪除的數據列數目。

方法

CreateParameter()

建立 SqlParameter 物件的新執行個體。

適用於