摘要: 介绍:List/IEnumerable转换到DataTable/DataView,以及DataTable转换到List正文:一、List/IEnumerable转换到DataTable/DataView方法一: 1 /// 2 /// Convert a List{T} to a DataTable. 3 /// 4 private DataTable ToDataTable(List items) 5 { 6 var tb = new DataTable(typeof (T).Name); 7 8 PropertyInfo[] props = typeof (T).G... 阅读全文
posted @ 2013-12-04 16:28 特务小强 阅读(663) 评论(1) 推荐(0) 编辑