Exemplo n.º 1
0
 internal AseDataReader(TableResult[] results, AseCommand command, CommandBehavior behavior)
 {
     _results  = results;
     _command  = command;
     _behavior = behavior;
     NextResult();
 }
 /// <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="AseDataAdapter"/> instance.
 /// </summary>
 /// <param name="selectCommandText">The SELECT command to initiaise with.</param>
 /// <param name="selectConnectionString">The connection to load data with.</param>
 // ReSharper disable once UnusedMember.Global
 public AseDataAdapter(string selectCommandText, string selectConnectionString)
 {
     SelectCommand = new AseCommand(new AseConnection(selectConnectionString))
     {
         CommandText = selectCommandText
     };
 }
Exemplo n.º 4
0
        internal AseDataReader(IEnumerable <TableResult> results, AseCommand command, CommandBehavior behavior)
        {
            _results = results.ToArray();
            _command = command;

            _behavior = behavior;
            NextResult();
        }
Exemplo n.º 5
0
        internal AseDataReader(TableResult[] results, AseCommand command, CommandBehavior behavior)
        {
            _results = results;
#if ENABLE_SYSTEM_DATA_COMMON_EXTENSIONS
            _command = command;
#endif
            _behavior = behavior;
            NextResult();
        }
Exemplo n.º 6
0
        /// <summary>
        /// Creates and returns an <see cref="AseCommand" /> object associated with the <see cref="AseConnection" />.
        /// </summary>
        /// <returns>An <see cref="AseCommand" /> object.</returns>
        public new AseCommand CreateCommand()
        {
            if (_isDisposed)
            {
                throw new ObjectDisposedException(nameof(AseConnection));
            }

            var aseCommand = new AseCommand(this);

            return(aseCommand);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Creates and returns an <see cref="AseCommand" /> object associated with the <see cref="AseConnection" />.
        /// </summary>
        /// <returns>An <see cref="AseCommand" /> object.</returns>
        public new AseCommand CreateCommand()
        {
            if (_isDisposed)
            {
                throw new ObjectDisposedException(nameof(AseConnection));
            }

            var aseCommand = new AseCommand(this) { NamedParameters = NamedParameters };

            return aseCommand;
        }
Exemplo n.º 8
0
        /// <summary>
        /// Creates and returns an <see cref="AseCommand" /> object associated with the <see cref="AseConnection" />.
        /// </summary>
        /// <returns>An <see cref="AseCommand" /> object.</returns>
        public new AseCommand CreateCommand()
        {
            if (_isDisposed)
            {
                throw new ObjectDisposedException(nameof(AseConnection));
            }

            _eventNotifier?.ClearResultHandlers();
            var aseCommand = new AseCommand(this)
            {
                EventNotifier = _eventNotifier
            };

            return(aseCommand);
        }
Exemplo n.º 9
0
 internal AseDataReader(AseCommand command, CommandBehavior behavior, IInfoMessageEventNotifier eventNotifier) : this(behavior, eventNotifier)
 {
     _command = command;
 }
 /// <summary>
 /// Constructor function for an <see cref="AseDataAdapter"/> instance.
 /// </summary>
 /// <param name="selectCommand">The SELECT command to initiaise with.</param>
 // ReSharper disable once UnusedMember.Global
 public AseDataAdapter(AseCommand selectCommand)
 {
     SelectCommand = selectCommand;
 }