Constructor ExpressiveCommandBase
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
ExpressiveCommandBase(IDbConnectionPool<TConnection>, CommandType, string, IEnumerable<Param>?)
protected ExpressiveCommandBase(IDbConnectionPool<TConnection> connectionPool, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params)
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
ExpressiveCommandBase(IDbConnectionFactory<TConnection>, CommandType, string, IEnumerable<Param>?)
protected ExpressiveCommandBase(IDbConnectionFactory<TConnection> connFactory, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params)
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
ExpressiveCommandBase(Func<TConnection>, CommandType, string, IEnumerable<Param>?)
protected ExpressiveCommandBase(Func<TConnection> connFactory, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params)
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
ExpressiveCommandBase(TConnection, IDbTransaction?, CommandType, string, IEnumerable<Param>?)
protected ExpressiveCommandBase(TConnection connection, IDbTransaction? transaction, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params)
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
ExpressiveCommandBase(TConnection, CommandType, string, IEnumerable<Param>?)
protected ExpressiveCommandBase(TConnection connection, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params)
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
ExpressiveCommandBase(IDbTransaction, CommandType, string, IEnumerable<Param>?)
protected ExpressiveCommandBase(IDbTransaction transaction, CommandType type, string command, IEnumerable<ExpressiveCommandBase<TConnection, TCommand, TReader, TDbType, TThis>.Param>? @params)
Parameters
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