DbCommandBuilder.InitializeCommand(DbCommand) Metodo

Definizione

Reimposta le proprietà CommandTimeout, Transaction, CommandType e UpdateRowSource sul valore DbCommand.Resets the CommandTimeout, Transaction, CommandType, and UpdateRowSource properties on the DbCommand.

protected:
 virtual System::Data::Common::DbCommand ^ InitializeCommand(System::Data::Common::DbCommand ^ command);
protected virtual System.Data.Common.DbCommand InitializeCommand (System.Data.Common.DbCommand command);
abstract member InitializeCommand : System.Data.Common.DbCommand -> System.Data.Common.DbCommand
override this.InitializeCommand : System.Data.Common.DbCommand -> System.Data.Common.DbCommand
Protected Overridable Function InitializeCommand (command As DbCommand) As DbCommand

Parametri

command
DbCommand

L'oggetto DbCommand che dovrà essere utilizzato dal generatore di comandi per il comando di inserimento, aggiornamento o eliminazione corrispondente.The DbCommand to be used by the command builder for the corresponding insert, update, or delete command.

Restituisce

Istanza di DbCommand da utilizzare per ciascuna operazione di inserimento, aggiornamento o eliminazione.A DbCommand instance to use for each insert, update, or delete operation. Se viene passato un valore null, il metodo InitializeCommand(DbCommand) crea un oggetto DbCommand in base al comando Select associato all'oggetto DbCommandBuilder.Passing a null value allows the InitializeCommand(DbCommand) method to create a DbCommand object based on the Select command associated with the DbCommandBuilder.

Commenti

Questo metodo deve essere utilizzato dai writer del provider che compilano un generatore di comandi personalizzato.This method is intended for use by provider writers building a custom command builder.

Si applica a

Vedi anche