随笔- 5  文章- 14  评论- 4 
11 2008 档案
Fill in Entity by Reflection
摘要: public static void Fill<T>(IDataReader sdr, T entity) { for (int i = 0; i < sdr.FieldCount; i++) { PropertyInfo pi = entity.GetType().GetProperty(sdr.GetName(i)); if (pi != null) { if (sdr.Ge...阅读全文
posted @ 2008-11-02 01:08 隔山打牛 阅读(33) | 评论 (0) 编辑