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