Table of Contents

Constructor ExpressiveDbCommandBase

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

ExpressiveDbCommandBase(IDbConnectionPool<TConnection>, CommandType, string, IEnumerable<Param>?)

Constructs a an expressive command.

protected ExpressiveDbCommandBase(IDbConnectionPool<TConnection> connectionPool, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params = null)

Parameters

connectionPool IDbConnectionPool<TConnection>

The pool to acquire connections from.

type CommandType

The command type.

command string

The SQL command.

params IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>

The list of params

ExpressiveDbCommandBase(IDbConnectionFactory<TConnection>, CommandType, string, IEnumerable<Param>?)

Constructs a an expressive command.

protected ExpressiveDbCommandBase(IDbConnectionFactory<TConnection> connFactory, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params = null)

Parameters

connFactory IDbConnectionFactory<TConnection>

The factory to generate connections from.

type CommandType

The command type.

command string

The SQL command.

params IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>

The list of params

ExpressiveDbCommandBase(Func<TConnection>, CommandType, string, IEnumerable<Param>?)

Constructs a an expressive command.

protected ExpressiveDbCommandBase(Func<TConnection> connFactory, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params = null)

Parameters

connFactory Func<TConnection>

The factory to generate connections from.

type CommandType

The command type.

command string

The SQL command.

params IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>

The list of params

ExpressiveDbCommandBase(TConnection, IDbTransaction?, CommandType, string, IEnumerable<Param>?)

Constructs a an expressive command.

protected ExpressiveDbCommandBase(TConnection connection, IDbTransaction? transaction, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params = null)

Parameters

connection TConnection

The connection to execute the command on.

transaction IDbTransaction

The optional transaction to execute the command on.

type CommandType

The command type.

command string

The SQL command.

params IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>

The list of params

ExpressiveDbCommandBase(TConnection, CommandType, string, IEnumerable<Param>?)

Constructs a an expressive command.

protected ExpressiveDbCommandBase(TConnection connection, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params = null)

Parameters

connection TConnection

The connection to execute the command on.

type CommandType

The command type.

command string

The SQL command.

params IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>

The list of params

ExpressiveDbCommandBase(IDbTransaction, CommandType, string, IEnumerable<Param>?)

Constructs a an expressive command.

protected ExpressiveDbCommandBase(IDbTransaction transaction, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params = null)

Parameters

transaction IDbTransaction

The transaction to execute the command on.

type CommandType

The command type.

command string

The SQL command.

params IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>

The list of params