internal AseCommand(AseConnection connection) { _connection = connection; _transaction = connection.Transaction; AseParameters = new AseParameterCollection(); }
/// <summary> /// Constructor function for an <see cref="AseDataAdapter"/> instance. /// </summary> /// <param name="selectCommandText">The SELECT command to initiaise with.</param> /// <param name="selectConnection">The <see cref="AseConnection"/> to load data with.</param> public AseDataAdapter(string selectCommandText, AseConnection selectConnection) { SelectCommand = new AseCommand(selectConnection) { CommandText = selectCommandText }; }
/// <summary> /// Constructor function for an <see cref="AseCommand"/> instance. /// </summary> /// <param name="commandText">The command text to execute</param> /// <param name="connection">The connection upon which to execute</param> /// <param name="transaction">The transaction within which to execute</param> public AseCommand(string commandText, AseConnection connection, AseTransaction transaction) { _connection = connection; _transaction = transaction; AseParameters = new AseParameterCollection(); CommandText = commandText; }
public AseCommand(AseConnection connection) { _connection = connection; AseParameters = new AseParameterCollection(); NamedParameters = connection.NamedParameters; }
internal AseCommand(AseConnection connection) : this(string.Empty, connection, connection.Transaction) { }
/// <summary> /// Constructor function for an <see cref="AseCommand"/> instance. /// </summary> /// <param name="commandText">The command text to execute</param> /// <param name="connection">The connection upon which to execute</param> /// <param name="transaction">The transaction within which to execute</param> public AseCommand(string commandText, AseConnection connection, AseTransaction transaction) : this(commandText, connection) { _transaction = transaction; }
/// <summary> /// Constructor function for an <see cref="AseCommand"/> instance. /// </summary> /// <param name="commandText">The command text to execute</param> /// <param name="connection">The connection upon which to execute</param> public AseCommand(string commandText, AseConnection connection) : this(commandText) { _connection = connection; _transaction = connection.Transaction; }