摘要:
From表单转化为对象 public static T RequestFormEntities<T>(HttpRequestBase request) where T : new() { T entity = Activator.CreateInstance<T>(); PropertyInfo[] 阅读全文
摘要:
DataTable转List public static List<T> ToListModel<T>(this DataTable table) where T : new() { var type = typeof(T); var properties = type.GetProperties( 阅读全文
摘要:
获取数据库表名、表结构 public static DataTable GetSqlTables(string filterSql) { StringBuilder sb = new StringBuilder(); sb.Append(" select name from sysobjects w 阅读全文