Table of Contents

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

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

transform Func<IDbCommand, 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.