Method Execute
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
Execute(Action<TCommand>)
Creates a command of type TCommand and passes it to action.
void Execute(Action<out TCommand> action)
Parameters
actionAction<TCommand>The action that operates on the command.
Execute<T>(Func<TCommand, T>)
Creates a command of type TCommand and passes it to transform, returning its result.
T Execute<T>(Func<out TCommand, T> transform)
Parameters
transformFunc<TCommand, T>The function that operates on the command.
Returns
- T
The value returned by
transform.
Type Parameters
TThe return type of the transform function.