コード例 #1
0
ファイル: ChiMaMigratorModule.cs プロジェクト: szdlsoft/ChiMa
        public ChiMaMigratorModule(ChiMaEFCoreModule ChiMaEFCoreModule)
        {
            ChiMaEFCoreModule.SkipDbSeed = true;

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

            _appConfiguration = AppConfigurations.GetWebConfigByEnviroment(Program.Environment);
        }
コード例 #2
0
ファイル: ChiMaCrawlerModule.cs プロジェクト: szdlsoft/ChiMa
        public ChiMaCrawlerModule(ChiMaEFCoreModule ChiMaEFCoreModule)
        {
            //ChiMaEFCoreModule.SkipDbSeed = true;

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

            // 就读哥数据库连接,没啥意义!
            //_appConfiguration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());
            _appConfiguration = AppConfigurations.GetWebConfigByEnviroment(Program.Environment);
        }
コード例 #3
0
ファイル: ChiMaTestModule.cs プロジェクト: szdlsoft/ChiMa
 public ChiMaTestModule(ChiMaEFCoreModule abpProjectNameEntityFrameworkModule)
 {
     abpProjectNameEntityFrameworkModule.SkipDbContextRegistration = true;
     //ÓÃÄÚ´æÊý¾Ý¿â£¿
 }