Ejemplo n.º 1
0
        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;
        }
Ejemplo 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;
        }
Ejemplo n.º 4
0
 public AseCommand(AseConnection connection)
 {
     _connection     = connection;
     AseParameters   = new AseParameterCollection();
     NamedParameters = connection.NamedParameters;
 }
Ejemplo n.º 5
0
 /// <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;
 }