예제 #1
0
        private void InitializeDatabase(IApplicationBuilder app)
        {
            using (var scope = app.ApplicationServices.CreateScope())
            {
                var contextFactory = new DesignTimeRepositoryContextFactory();
                TariffConstructorContext context = contextFactory.CreateDbContext(new string[] { });
                context.Database.Migrate();

                string[] appliedMigrations = context.Database.GetAppliedMigrations().ToArray();
                Console.WriteLine(String.Join("\n", appliedMigrations));
            }
        }
 public CurrencyRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }
 public ApplicationRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }
예제 #4
0
 public TariffTestPeriodRepository(TariffConstructorContext appDbContext)
 {
     _DbContext = appDbContext;
 }
 public TermsOfUseRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }
예제 #6
0
 public IncludedProductInTariffRepository(TariffConstructorContext appDbContext)
 {
     _DbContext = appDbContext;
 }
예제 #7
0
 public TariffRepository(TariffConstructorContext appDbContext)
 {
     _DbContext = appDbContext;
 }
예제 #8
0
 public ContractKindRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }
예제 #9
0
 public SettingRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }
예제 #10
0
 public ProductOptionTariffRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }
 public AvailableTariffForUpgradeRepository(TariffConstructorContext appDbContext)
 {
     _ctx = appDbContext;
 }