Example #1
0
        public object GenerateTranslator(SqlDataReader reader)
        {
            var limitedReader = new LimitingDataReader(reader, mLimitingDataReaderMode);
            var converter     = Activator.CreateInstance(typeof(SqlReaderConverter <>).MakeGenericType(mElementType), limitedReader, mProperties);

            return(mIsSequence ? converter : GetLast((IEnumerable)converter));
        }
 public object GenerateTranslator(SqlDataReader reader)
 {
     var limitedReader = new LimitingDataReader(reader, mLimitingDataReaderMode);
     var converter = Activator.CreateInstance(typeof(SqlReaderConverter<>).MakeGenericType(mElementType), limitedReader, mProperties);
     return mIsSequence ? converter : GetLast((IEnumerable)converter);
 }