摘要:
public static T FillModel(DataRow dr) { if (dr == null || dr.ItemArray.Length == 0) return default(T); T model = Activator.CreateInstance(); foreach (PropertyInfo property in model.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance))//Bi... 阅读全文