摘要:
public class MailUnit { public string smtp; public string from; public string pwd; public string to; public str... 阅读全文
摘要:
把包含 对象 数据的DataRow转换成 实体对象(泛型反射方式) public static T Row2Model(DataRow dr) where T : new() { T model = new T(); foreach (PropertyInfo p in (typeof(T)).GetProperties()) { ... 阅读全文