Executes any action method in database transaction.
Namespace: LiteRepositoryAssembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntaxpublic virtual T Exec<T>(
Func<DbConnection, T> action
)
Parameters
- action
- Type: SystemFuncDbConnection, T
Callback method to execute.
Type Parameters
- T
- Type of the execution result.
Return Value
Type:
TResult of the
action execute.
See Also