public static IEnumerable <T> ToListWithoutCheck <T>(this IDataReader reader) { if (reader == null) { throw new ArgumentNullException("Reader is null."); } return(EntityConverter <T> .ToList(reader)); }
public static IEnumerable <T> ToList <T>(this IDataReader reader) where T : class, IEntity, new() { if (reader == null) { throw new ArgumentNullException("Reader is null."); } return(EntityConverter <T> .ToList(reader)); }
public static T ToInfo2 <T>(this IDataReader reader) where T : class, new() { return(EntityConverter <T> .ToList(reader).FirstOrDefault()); }
public static List <T> ToList2 <T>(this IDataReader reader) where T : class, new() { return(EntityConverter <T> .ToList(reader)); }