ExecuteCommand Method
Definition
ExecuteCommand<T>(DataStatement, Func<IDbCommand, T>)
Core method for executing methods on the IDbCommand interface resolved from the abstract GetDbCommand(DataStatement) method.
protected virtual T ExecuteCommand<T>(DataStatement statement, Func<IDbCommand, T> executeSelector)
Parameters
statementDataStatementThe command statement to execute.
executeSelectorFunc<IDbCommand, T>The function delegate that will invoke a method on the resolved IDbCommand from the abstract GetDbCommand(DataStatement) method.
Returns
- T
A value of
Tthat is equal to the invoked method of the IDbCommand implementation.
Type Parameters
TThe type to return.