public InternalDataReader(InternalDbSession dbSession, IDataReader reader) { Utils.CheckNull(dbSession); Utils.CheckNull(reader); this._dbSession = dbSession; this._reader = reader; }
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; }
public override string ToString() { DbCommandFactor commandFactor = this.GenerateCommandFactor(); return(InternalDbSession.AppendDbCommandInfo(commandFactor.CommandText, commandFactor.Parameters)); }
public static IEnumerator <T> CreateEnumerator <T>(InternalDbSession dbSession, DbCommandFactor commandFactor) { return(new QueryEnumerator <T>(dbSession, commandFactor)); }