Пример #1
0
        public InternalDataReader(InternalDbSession dbSession, IDataReader reader)
        {
            Utils.CheckNull(dbSession);
            Utils.CheckNull(reader);

            this._dbSession = dbSession;
            this._reader = reader;
        }
Пример #2
0
            public QueryEnumerator(InternalDbSession dbSession, DbCommandFactor commandFactor)
            {
                this._dbSession       = dbSession;
                this._commandFactor   = commandFactor;
                this._objectActivator = commandFactor.ObjectActivator;

                this._reader = null;

                this._current     = default(T);
                this._hasFinished = false;
                this._disposed    = false;
            }
Пример #3
0
        public override string ToString()
        {
            DbCommandFactor commandFactor = this.GenerateCommandFactor();

            return(InternalDbSession.AppendDbCommandInfo(commandFactor.CommandText, commandFactor.Parameters));
        }
Пример #4
0
 public static IEnumerator <T> CreateEnumerator <T>(InternalDbSession dbSession, DbCommandFactor commandFactor)
 {
     return(new QueryEnumerator <T>(dbSession, commandFactor));
 }