Example #1
0
        public ChiMaMigratorModule(ChiMaEFCoreModule ChiMaEFCoreModule)
        {
            ChiMaEFCoreModule.SkipDbSeed = true;

            //_appConfiguration = AppConfigurations.Get(
            //    typeof(ChiMaMigratorModule).GetAssembly().GetDirectoryPathOrNull()
            //);

            _appConfiguration = AppConfigurations.GetWebConfigByEnviroment(Program.Environment);
        }
Example #2
0
        public ChiMaCrawlerModule(ChiMaEFCoreModule ChiMaEFCoreModule)
        {
            //ChiMaEFCoreModule.SkipDbSeed = true;

            //_appConfiguration = AppConfigurations.Get(
            //    typeof(ChiMaCrawlerModule).GetAssembly().GetDirectoryPathOrNull()
            //);

            // 就读哥数据库连接,没啥意义!
            //_appConfiguration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());
            _appConfiguration = AppConfigurations.GetWebConfigByEnviroment(Program.Environment);
        }
Example #3
0
 public ChiMaTestModule(ChiMaEFCoreModule abpProjectNameEntityFrameworkModule)
 {
     abpProjectNameEntityFrameworkModule.SkipDbContextRegistration = true;
     //ÓÃÄÚ´æÊý¾Ý¿â£¿
 }