Esempio n. 1
0
        public ChiMaMigratorModule(ChiMaEFCoreModule ChiMaEFCoreModule)
        {
            ChiMaEFCoreModule.SkipDbSeed = true;

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

            _appConfiguration = AppConfigurations.GetWebConfigByEnviroment(Program.Environment);
        }
Esempio n. 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);
        }