随笔- 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...阅读全文
