public override void SetupDatabase() { using (var db = new CommerceRepositoryImpl("VirtoCommerce")) { var initializer = new SetupDatabaseInitializer<CommerceRepositoryImpl, VirtoCommerce.CoreModule.Data.Migrations.Configuration>(); initializer.InitializeDatabase(db); } }
public override void SetupDatabase() { using (var db = new CommerceRepositoryImpl(_connectionStringName, _container.Resolve<AuditableInterceptor>())) { var initializer = new SetupDatabaseInitializer<CommerceRepositoryImpl, VirtoCommerce.CoreModule.Data.Migrations.Configuration>(); initializer.InitializeDatabase(db); } }
public override void SetupDatabase() { using (var context = new PricingRepositoryImpl("VirtoCommerce")) { var initializer = new SetupDatabaseInitializer<PricingRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(context); } }
public void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var context = new InventoryRepositoryImpl()) { var initializer = new SetupDatabaseInitializer<InventoryRepositoryImpl, VirtoCommerce.InventoryModule.Data.Migrations.Configuration>(); initializer.InitializeDatabase(context); } }
public override void SetupDatabase() { using (var context = new OrderRepositoryImpl()) { var initializer = new SetupDatabaseInitializer<OrderRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(context); } }
public override void SetupDatabase() { using (var context = new MarketingRepositoryImpl()) { var initializer = new SetupDatabaseInitializer<MarketingRepositoryImpl, VirtoCommerce.MarketingModule.Data.Migrations.Configuration>(); initializer.InitializeDatabase(context); } }
public override void SetupDatabase() { using (var context = new QuoteRepositoryImpl(_connectionStringName, _container.Resolve<AuditableInterceptor>())) { var initializer = new SetupDatabaseInitializer<QuoteRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(context); } }
public override void SetupDatabase() { using (var db = new StoreRepositoryImpl()) { var initializer = new SetupDatabaseInitializer<StoreRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(db); } }
public override void SetupDatabase() { base.SetupDatabase(); using (var db = new CatalogRepositoryImpl(_connectionStringName, _container.Resolve<AuditableInterceptor>())) { var initializer = new SetupDatabaseInitializer<CatalogRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(db); } }
public override void SetupDatabase() { base.SetupDatabase(); using (var db = new CatalogRepositoryImpl(_connectionStringName)) { var initializer = new SetupDatabaseInitializer<CatalogRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(db); } }
public void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var db = new CommerceRepositoryImpl("VirtoCommerce")) { IDatabaseInitializer<CommerceRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new SqlCommerceSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer<CommerceRepositoryImpl, VirtoCommerce.CoreModule.Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(db); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var context = new PricingRepositoryImpl("VirtoCommerce")) { IDatabaseInitializer<PricingRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new PricingSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer<PricingRepositoryImpl, Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(context); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var context = new OrderRepositoryImpl(_connectionStringName)) { IDatabaseInitializer<OrderRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new OrderSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer<OrderRepositoryImpl, Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(context); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var db = new StoreRepositoryImpl("VirtoCommerce")) { IDatabaseInitializer<StoreRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new SqlStoreSampleDatabaseInitializer(_container.Resolve<ISettingsManager>()); break; default: initializer = new SetupDatabaseInitializer<StoreRepositoryImpl, Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(db); } }
public void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var context = new OrderRepositoryImpl(_connectionStringName)) { IDatabaseInitializer <OrderRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new OrderSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer <OrderRepositoryImpl, VirtoCommerce.OrderModule.Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(context); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var db = new StoreRepositoryImpl("VirtoCommerce")) { IDatabaseInitializer <StoreRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new SqlStoreSampleDatabaseInitializer(_container.Resolve <ISettingsManager>()); break; default: initializer = new SetupDatabaseInitializer <StoreRepositoryImpl, Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(db); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var db = new CustomerRepositoryImpl("VirtoCommerce")) { IDatabaseInitializer <CustomerRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new SqlCustomerSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer <CustomerRepositoryImpl, VirtoCommerce.CustomerModule.Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(db); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { using (var context = new PricingRepositoryImpl("VirtoCommerce")) { IDatabaseInitializer <PricingRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: case SampleDataLevel.Reduced: initializer = new PricingSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer <PricingRepositoryImpl, Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(context); } }
public override void SetupDatabase(SampleDataLevel sampleDataLevel) { base.SetupDatabase(sampleDataLevel); using (var db = new CatalogRepositoryImpl(_connectionStringName)) { IDatabaseInitializer<CatalogRepositoryImpl> initializer; switch (sampleDataLevel) { case SampleDataLevel.Full: initializer = new SqlCatalogSampleDatabaseInitializer(); break; case SampleDataLevel.Reduced: initializer = new SqlCatalogReducedSampleDatabaseInitializer(); break; default: initializer = new SetupDatabaseInitializer<CatalogRepositoryImpl, Data.Migrations.Configuration>(); break; } initializer.InitializeDatabase(db); } }
public override void SetupDatabase() { var options = _container.Resolve<IModuleInitializerOptions>(); var modulePath = options.GetModuleDirectoryPath("VirtoCommerce.Content"); var themePath = Path.Combine(modulePath, "Default_Theme"); using (var context = new DatabaseContentRepositoryImpl()) { var initializer = new SetupDatabaseInitializer<DatabaseContentRepositoryImpl, Data.Migrations.Configuration>(); initializer.InitializeDatabase(context); } }