2017年3月18日

数组可以直接转换为DataRow

摘要: string[] cc=new string[3]{...}; Dt.Rows.Add(cc); 阅读全文

posted @ 2017-03-18 08:57 mol1995 阅读(1629) 评论(0) 推荐(0) 编辑

List转Datable(需区分对象充当List成员和数组充当List成员两种情况)

摘要: 对象充当List成员时: /// <summary> /// 将泛类型集合List类转换成DataTable /// </summary> /// <param name="list">泛类型集合</param> /// <returns></returns> public static DataT 阅读全文

posted @ 2017-03-18 08:33 mol1995 阅读(211) 评论(0) 推荐(0) 编辑

导航