摘要: private static string Host = System.Configuration.ConfigurationManager.AppSettings["SMTPURL"].ToString(); //SMTP服务器地址 private static string Account = 阅读全文
posted @ 2017-12-29 10:00 plming 阅读(104) 评论(0) 推荐(0) 编辑
摘要: From表单转化为对象 public static T RequestFormEntities<T>(HttpRequestBase request) where T : new() { T entity = Activator.CreateInstance<T>(); PropertyInfo[] 阅读全文
posted @ 2017-12-29 09:56 plming 阅读(413) 评论(0) 推荐(0) 编辑
摘要: DataTable转List public static List<T> ToListModel<T>(this DataTable table) where T : new() { var type = typeof(T); var properties = type.GetProperties( 阅读全文
posted @ 2017-12-29 09:52 plming 阅读(407) 评论(1) 推荐(0) 编辑