internal AseCommand(AseConnection connection) { _connection = connection; _transaction = connection.Transaction; AseParameters = new AseParameterCollection(); }
/// <summary> /// Constructor function for an <see cref="AseCommand"/> instance. /// Note: the instance will not be initialised with an AseConnection; before use this must be supplied. /// </summary> /// <param name="commandText">The command text to execute</param> public AseCommand(string commandText) { AseParameters = new AseParameterCollection(); NamedParameters = true; CommandText = commandText; }
/// <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; }
/// <summary> /// Constructor function for an <see cref="AseCommand"/> instance. /// Note: the instance will not be initialised with an AseConnection; before use this must be supplied. /// </summary> public AseCommand() { AseParameters = new AseParameterCollection(); }
/// <summary> /// Constructor function for an <see cref="AseCommand"/> instance. /// Note: the instance will not be initialised with an AseConnection; before use this must be supplied. /// </summary> public AseCommand() { AseParameters = new AseParameterCollection(); NamedParameters = true; }