摘要: public static DataSet ToDataSetByStream(string Stream) { DataSet ds = new DataSet(); StringReader str = new StringReader(Stream); XmlTextReader xm = new XmlTextReader(str); ds.ReadXml(xm); return ds; } 阅读全文
posted @ 2014-02-12 17:28 JasonGu0 阅读(506) 评论(0) 推荐(0) 编辑
摘要: /// /// 将List集合 转换成 DataTable /// /// sellerSearchDealList是我自己定义的一个类 public static DataTable ListToTable(List entitys) { DataTable dtresult = new DataTable(); if (entitys == null || entitys.Count < 1) { throw new ... 阅读全文
posted @ 2014-02-12 17:27 JasonGu0 阅读(642) 评论(0) 推荐(0) 编辑