/// <summary> /// 将datareader转换成实体对象列表 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dataReader"></param> /// <returns></returns> public static List <T> ToList <T>(this IDataReader dataReader) where T : class, new() { return(TransferHelper.DataReaderToList <T>(dataReader)); }