62,047
社区成员
发帖
与我相关
我的任务
分享
public static List<T> ToModel(SqlDataReader reader)
{
Dictionary<string, PropertyInfo> ps = new Dictionary<string, PropertyInfo>();
foreach (PropertyInfo p in typeof(T).GetProperties())
{
ps.Add(p.Name, p);
}
List<T> ms = new List<T>();
while (reader.Read())
{
//这里该怎么写
}
return ms;
}