An asynchronous version of
Exec.
Namespace: LiteRepositoryAssembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntaxpublic virtual Task<T> ExecAsync<T>(
Func<DbConnection, Task<T>> action
)
Parameters
- action
- Type: SystemFuncDbConnection, TaskT
Callback method to execute.
Type Parameters
- T
- Type of the execution result.
Return Value
Type:
TaskTA task representing the asynchronous operation.
See Also