public override void Reset() { base.Reset(); if (Current == null) { Helper = null; } }
public void Dispose() { Reader = null; if (Numerator != null) { Numerator.Dispose(); } Numerator = null; helper = null; }
public void Reset() { if (Numerator != null && Numerator.Current != null) { Numerator.Reset(); Reader = Numerator.Reader; } if (Reader != null) { helper = helper ?? new DbMapperDyn(Reader); } }
public override bool MoveNext() { if (!base.MoveNext()) { return(false); } if (Helper == null && ReaderAvailable) { Helper = new DbMapperDyn(Reader); } return(true); }
public bool MoveNext() { if (Numerator == null || !Numerator.MoveNext()) { return(false); } if (helper == null) { Guard.Check(Reader == Numerator.Reader); helper = new DbMapperDyn(Numerator.Reader); } return(helper != null); }
public override bool NextResult() { Helper = null; if (!base.NextResult()) { return(false); } if (ReaderAvailable && Current != null) { Helper = null; Helper = new DbMapperDyn(Reader); } return(ReaderAvailable); }
public IEnumerable <ExpandoObject> ResultDyn() { var cycle = numerator; var helper = new DbMapperDyn(reader); do { object[] rec = numerator.Current; // as DbDataRecord; if (rec == null) { yield break; // first error } dynamic obj = helper.Get(rec); yield return(obj); } while (cycle.MoveNext()); }