摘要:
在项目开发中,我用这个方法从数据库读取数据封装实体类,减少体力代码量,犹其是一个类字段特多时。但我不知道这样会有什么问题,请大家指点,共同进步呀。1.EntityHelper:using System;using System.Collections.Generic;using System.Data;using System.Reflection;namespace Tuo.Dao{ public class EntityHelper { public static T GetEntity<T>(DataTable table) where T : new() { T entit 阅读全文