摘要: 1 /// 2 /// 单表查询结果转换成泛型集合 --实体类的字段名 需要与DataTable的列名一致 3 /// 4 /// 泛型集合类型 5 /// 查询结果DataTable 6 /// 以实体类为元素的泛型集合 7 public static IList convertToList(DataTable dt) where T : new() 8 { 9 // 定义集合 10 List ts... 阅读全文
posted @ 2013-08-16 17:56 寂小魔 阅读(343) 评论(0) 推荐(0) 编辑