Esempio n. 1
0
        public DbFactory(string connectionStringName)
        {
            string       ConnectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ToString();
            BaseDbHelper baseHelper       = (BaseDbHelper)Assembly.Load("MDT.Tools.Core").CreateInstance("DNCCFrameWork.DataAccess.DbProvider." + DbProviderString);

            baseHelper.ConnectionString = ConnectionString;
            IDbHelper = baseHelper;
        }
Esempio n. 2
0
        public DbFactory(string connectionString, string dbProvider)
        {
            string ConnectionString = connectionString;
            //ConnectionString = "Data Source=.;Initial Catalog=LoadTest;Integrated Security=True";
            BaseDbHelper baseHelper = (BaseDbHelper)Assembly.Load("MDT.Tools.Core").CreateInstance("DNCCFrameWork.DataAccess.DbProvider." + dbProvider);

            baseHelper.ConnectionString = ConnectionString;
            IDbHelper = baseHelper;
        }