/// <summary> /// Initializes a new instance of the ObjectListDbDataReader class. /// </summary> /// <param name="objectReader">The objectReader to use to read the values from an object in the list.</param> /// <param name="list">The list of objects.</param> public ObjectListDbDataReader(ObjectReader objectReader, IEnumerable list) { _objectReader = objectReader; _enumerable = list; _enumerator = list.GetEnumerator(); _rownumber_ordinal = objectReader.GetOrdinal(_rownumber_columnname); }
public override int GetOrdinal(string name) { return(_objectReader.GetOrdinal(name)); }