ExecuteCommandAsync Method
Definition
ExecuteCommandAsync<T>(DataStatement, Func<DbCommand, Task<T>>)
Asynchronous core method for executing methods on the DbCommand resolved from the abstract GetDbCommand(DataStatement) method.
protected virtual Task<T> ExecuteCommandAsync<T>(DataStatement statement, Func<DbCommand, Task<T>> executeSelector)
Parameters
statementDataStatementThe command statement to execute.
executeSelectorFunc<DbCommand, Task<T>>The function delegate that will invoke a method on the resolved DbCommand from the abstract GetDbCommand(DataStatement) method.
Returns
- Task<T>
A task that represents the asynchronous operation. The task result contains a value of
Tthat is equal to the invoked method of DbCommand.
Type Parameters
TThe type to return.