Aracılığıyla paylaş


SqlClientFactory.CreateBatch Yöntem

Tanım

Kesin olarak yazılan DbBatch bir örnek döndürür.

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

Döndürülenler

Türü kesin olarak belirlenmiş yeni bir DbBatch örneği.

Örnekler

Aşağıdaki kod parçası kesin olarak belirlenmiş DbBatch bir örnek döndürür:

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

Şunlara uygulanır