SqlClientFactory.CreateBatch Metodo

Definizione

Restituisce un'istanza di DbBatch fortemente tipizzata.

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

Restituisce

Nuova istanza fortemente tipizzata di DbBatch .

Esempio

Il frammento di codice seguente restituisce un'istanza fortemente tipizzata DbBatch :

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

Si applica a