为了可扩展性,方便以后对于代码的修改维护,使用动态创建DAL层对象. 1.首先在webconfig中的configuration下添加配置项 <appSettings> <add key="IStuDAL" value="StuDAL.StudentDAL"/> </appSettings> 2.在工厂中创建实例 namespace DALFactory { public class DALHelper { public stat
public static T GetInstance<T>(ExplicitArguments args); // // Summary: // Creates a new instance of the requested type T using the supplied Instance. // Mostly used internally // // Parameters: // instance: public static T GetInstance<T>(Insta