
C# DataTable转List对应Model集合,DataRow转Model
2021-09-21 更新public static ListT ToListT(DataTable dt){try{//转载请保留 http://www.luofenming.com/show.aspx?id=ART2019120700001ListT list = new ListT();Type t = typeof(T);ListPropertyInfo plist = new ListPropertyInfo(typeof(T).GetPropertie…