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
connectionPoolIDbConnectionPool<TConnection>The pool to acquire connections from.
typeCommandTypeThe command type.
commandstringThe SQL command.
paramsIEnumerable<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
connFactoryIDbConnectionFactory<TConnection>The factory to generate connections from.
typeCommandTypeThe command type.
commandstringThe SQL command.
paramsIEnumerable<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
connFactoryFunc<TConnection>The factory to generate connections from.
typeCommandTypeThe command type.
commandstringThe SQL command.
paramsIEnumerable<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
connectionTConnectionThe connection to execute the command on.
transactionIDbTransactionThe optional transaction to execute the command on.
typeCommandTypeThe command type.
commandstringThe SQL command.
paramsIEnumerable<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
connectionTConnectionThe connection to execute the command on.
typeCommandTypeThe command type.
commandstringThe SQL command.
paramsIEnumerable<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
transactionIDbTransactionThe transaction to execute the command on.
typeCommandTypeThe command type.
commandstringThe SQL command.
paramsIEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>The list of params