Interface IExecuteCommand<TCommand>
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
A strongly typed IExecuteCommand whose commands are of type TCommand.
public interface IExecuteCommand<out TCommand> : IExecuteCommand where TCommand : IDbCommand
Type Parameters
TCommandThe type of command passed to the functions.
- Inherited Members
Methods
- Execute(Action<TCommand>)
Creates a command of type
TCommandand passes it toaction.
- ExecuteAsync(Func<TCommand, ValueTask>)
Asynchronously creates a command of type
TCommandand passes it tohandler.
- ExecuteAsync<T>(Func<TCommand, ValueTask<T>>)
Asynchronously creates a command of type
TCommandand passes it totransform, returning its result.
- Execute<T>(Func<TCommand, T>)
Creates a command of type
TCommandand passes it totransform, returning its result.