Table of Contents

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.

public void Execute(Action<TCommand> action)

Parameters

action Action<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.

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

Parameters

transform Func<TCommand, T>

The function that operates on the command.

Returns

T

The value returned by transform.

Type Parameters

T

The return type of the transform function.