Ejemplo n.º 1
0
 /// <summary>
 /// 将datatable转换成实体对象列表
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="dataTable"></param>
 /// <returns></returns>
 public static List <T> ToList <T>(this DataTable dataTable) where T : class, new()
 {
     return(TransferHelper.DataTableToList <T>(dataTable));
 }