摘要:
1.基于反射,实例化泛型对象:Activator public static T GetInStance<T>() { var ob = Activator.CreateInstance<T>(); return ob; } 2.通过类型约束 public static T GetInStance2 阅读全文
摘要:
1.下载文件,提取码: oft9 2.配置文件添加数据库连接 <connectionStrings> <add name="ConnStr" connectionString="data source=AAA;initial catalog=AAA;persist security info=Tru 阅读全文