Udostępnij za pośrednictwem


SqlClientFactory.CreateBatchCommand Metoda

Definicja

Zwraca silnie typizowane DbBatchCommand wystąpienie.

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

Zwraca

Nowe silnie typizowane wystąpienie klasy DbBatchCommand .

Przykłady

Poniższy fragment kodu zwraca silnie typizowane DbBatchCommand wystąpienie:

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

Dotyczy