摘要: 最近做项目需要读取修改前数据库中被修改的数据所有的信息,一开始想要在model层的每个类都写一个函数return一串字符串,但是由于表太多,实体类数量太大,写出来太浪费时间,所以决定写一个通用的方法输出/// /// 循环输出实体类的各属性名称和属性值/// /// 实体/// public string ResolvingTableRow(object Entity){ Type EntType = Entity.GetType(); PropertyInfo[] propertys = EntType.GetProperties(); string tempName = stri... 阅读全文
posted @ 2013-11-22 09:23 .Justme 阅读(1709) 评论(0) 推荐(0) 编辑