Esempio n. 1
0
        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
     };
 }
Esempio n. 3
0
        /// <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;
        }
Esempio n. 4
0
 public AseCommand(AseConnection connection)
 {
     _connection     = connection;
     AseParameters   = new AseParameterCollection();
     NamedParameters = connection.NamedParameters;
 }
Esempio n. 5
0
 internal AseCommand(AseConnection connection) : this(string.Empty, connection, connection.Transaction)
 {
 }
Esempio n. 6
0
 /// <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;
 }
Esempio n. 7
0
 /// <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;
 }