DbCommandBuilder.InitializeCommand(DbCommand) Método

Definición

Restablece las propiedades CommandTimeout, Transaction, CommandType y UpdateRowSource en el objeto 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);
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

Parámetros

command
DbCommand

DbCommand que va a utilizar el generador de comandos para el correspondiente comando de inserción, actualización o eliminación.The DbCommand to be used by the command builder for the corresponding insert, update, or delete command.

Devoluciones

DbCommand

Instancia de DbCommand que se va a utilizar para cada operación de inserción, actualización o eliminación.A DbCommand instance to use for each insert, update, or delete operation. Si se pasa un valor null, el método InitializeCommand(DbCommand) puede crear un objeto DbCommand basado en el comando Select asociado al objeto DbCommandBuilder.Passing a null value allows the InitializeCommand(DbCommand) method to create a DbCommand object based on the Select command associated with the DbCommandBuilder.

Comentarios

Este método está pensado para que lo usen los escritores de proveedores que compilan un generador de comandos personalizado.This method is intended for use by provider writers building a custom command builder.

Se aplica a