Esempio n. 1
0
        public void SetupDatabase(SampleDataLevel sampleDataLevel)
        {
			using (var context = new InventoryRepositoryImpl())
			{
				var initializer = new SetupDatabaseInitializer<InventoryRepositoryImpl, VirtoCommerce.InventoryModule.Data.Migrations.Configuration>();
				initializer.InitializeDatabase(context);
			}
        }
Esempio n. 2
0
 public override void SetupDatabase()
 {
     using (var context = new InventoryRepositoryImpl(_connectionStringName, _container.Resolve<AuditableInterceptor>()))
     {
         var initializer = new SetupDatabaseInitializer<InventoryRepositoryImpl, VirtoCommerce.InventoryModule.Data.Migrations.Configuration>();
         initializer.InitializeDatabase(context);
     }
 }