SqlClientFactory.CreateBatch 方法

定义

返回强类型的 DbBatch 实例。

public:
 override System::Data::Common::DbBatch ^ CreateBatch();
public override System.Data.Common.DbBatch CreateBatch ();
override this.CreateBatch : unit -> System.Data.Common.DbBatch
Public Overrides Function CreateBatch () As DbBatch

返回

的新强类型实例 DbBatch

示例

以下代码片段返回强类型 DbBatch 实例:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbParameter cmd = newFactory.CreateBatch();

适用于