コード例 #1
0
        internal AseCommand(AseConnection connection)
        {
            _connection  = connection;
            _transaction = connection.Transaction;

            AseParameters = new AseParameterCollection();
        }
コード例 #2
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>
        /// <param name="commandText">The command text to execute</param>
        public AseCommand(string commandText)
        {
            AseParameters   = new AseParameterCollection();
            NamedParameters = true;

            CommandText = commandText;
        }
コード例 #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;
        }
コード例 #4
0
 public AseCommand(AseConnection connection)
 {
     _connection     = connection;
     AseParameters   = new AseParameterCollection();
     NamedParameters = connection.NamedParameters;
 }
コード例 #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();
 }
コード例 #6
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();
     NamedParameters = true;
 }