InitializeCommand( DbCommand ) method

Resets the System.Data.Common.DbCommand.CommandTimeout, System.Data.Common.DbCommand.Transaction, System.Data.Common.DbCommand.CommandType, and System.Data.Common.DbCommand.UpdatedRowSource properties on the System.Data.Common.DbCommand.

Visual Basic syntax

Protected Overrides Function InitializeCommand (ByVal command As DbCommand ) As DbCommand

C# syntax

protected override DbCommand InitializeCommand ( DbCommand command)

Parameters

Returns

A System.Data.Common.DbCommand instance to use for each insert, update, or delete operation. Passing a null value allows the InitializeCommand method to create a System.Data.Common.DbCommand object based on the SELECT statement associated with the SACommandBuilder object.