Table of Contents

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

TCommand

The type of command passed to the functions.

Inherited Members

Methods

Execute(Action<TCommand>)

Creates a command of type TCommand and passes it to action.

ExecuteAsync(Func<TCommand, ValueTask>)

Asynchronously creates a command of type TCommand and passes it to handler.

ExecuteAsync<T>(Func<TCommand, ValueTask<T>>)

Asynchronously creates a command of type TCommand and passes it to transform, returning its result.

Execute<T>(Func<TCommand, T>)

Creates a command of type TCommand and passes it to transform, returning its result.

See Also