摘要: /// <summary> /// 将datatable装入指定类型的集合 /// </summary> /// <typeparam name="T"></typeparam> public class GenericList<T>:List<T> { public GenericList(DataTable dt, string f) { System.Type tt = System.Type.GetType(f);//获取指定名称的类型 object ff = Activat... 阅读全文
posted @ 2012-06-06 10:10 jeffrey77 阅读(719) 评论(0) 推荐(0)
摘要: public static IList<T> FillList<T>(System.Data.IDataReader reader) { IList<T> lst = new List<T>(); while (reader.Read()) { T RowInstance = Activator.CreateInstance<T>(); foreach (PropertyInfo Property in typeof(T).GetProperties()) { ... 阅读全文
posted @ 2012-06-06 10:08 jeffrey77 阅读(334) 评论(0) 推荐(0)
摘要: <?xml version="1.0"?><!--注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“Asp.Net 配置”选项。设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 "Windows"Microsoft.Net"Framework"v2.x"Config 中。--> <!--Webconfig文件是一个xml文件,configuration是xml 阅读全文
posted @ 2012-06-06 09:48 jeffrey77 阅读(197) 评论(0) 推荐(0)