static GoogleProductObjectContext()
 {
     var initializer = new MigrateDatabaseInitializer<GoogleProductObjectContext, Configuration>
     {
         TablesToCheck = new[] { "GoogleProduct" }
     };
     Database.SetInitializer(initializer);
 }
		static SmartObjectContext()
		{
			var initializer = new MigrateDatabaseInitializer<SmartObjectContext, MigrationsConfiguration>
			{
				TablesToCheck = new[] { "Customer", "Discount", "Order", "Product", "ShoppingCartItem" }
			};
			Database.SetInitializer<SmartObjectContext>(initializer);
		}
		static TaxRateObjectContext()
		{
			var initializer = new MigrateDatabaseInitializer<TaxRateObjectContext, Configuration>
			{
				TablesToCheck = new[] { "TaxRate" }
			};
			Database.SetInitializer(initializer);
		}
		static ShippingByWeightObjectContext()
		{
			var initializer = new MigrateDatabaseInitializer<ShippingByWeightObjectContext, Configuration>
			{
				TablesToCheck = new[] { "ShippingByWeight" }
			};
			Database.SetInitializer(initializer);
		}
        static TaxRateObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <TaxRateObjectContext, Configuration>
            {
                TablesToCheck = new[] { "TaxRate" }
            };

            Database.SetInitializer(initializer);
        }
Esempio n. 6
0
        static ShippingByWeightObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <ShippingByWeightObjectContext, Configuration>
            {
                TablesToCheck = new[] { "ShippingByWeight" }
            };

            Database.SetInitializer(initializer);
        }
        static GoogleProductObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <GoogleProductObjectContext, Configuration>
            {
                TablesToCheck = new[] { "GoogleProduct" }
            };

            Database.SetInitializer(initializer);
        }
Esempio n. 8
0
        static MailChimpObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <MailChimpObjectContext, Configuration>
            {
                TablesToCheck = new[] { "MailChimpEventQueueRecord" }
            };

            Database.SetInitializer(initializer);
        }
        static ShopConnectorObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <ShopConnectorObjectContext, Configuration>
            {
                TablesToCheck = new[] { "ShopConnectorConnection", "ShopConnectorSkuMapping" }
            };

            Database.SetInitializer(initializer);
        }
Esempio n. 10
0
        static InSearchObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <InSearchObjectContext, MigrationsConfiguration>
            {
                TablesToCheck = new[] { "User", "Discount", "Order", "Product", "ShoppingCartItem" }
            };

            Database.SetInitializer <InSearchObjectContext>(initializer);
        }
        static CustomBannerObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <CustomBannerObjectContext, Configuration>
            {
                TablesToCheck = new[] { "CustomBanner" }
            };

            Database.SetInitializer(initializer);
        }
Esempio n. 12
0
        static DefaultObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <DefaultObjectContext, MigrationsConfiguration>
            {
                TablesToCheck = new[] { "User", "Article", "ArticleCategory" }
            };

            Database.SetInitializer <DefaultObjectContext>(initializer);
            // DbInterception.Add(new DatabaseLogger());
        }
Esempio n. 13
0
        static GTPayObjectContext()
        {
            var initializer = new MigrateDatabaseInitializer <GTPayObjectContext, Configuration>
            {
                TablesToCheck = new[] { "GTPaySupportedCurrency", "GTPayTransactionLog", "GTPayTransactionStatus" }
                //TablesToCheck = new[] { "GTPay" }
            };

            Database.SetInitializer(initializer);
        }
Esempio n. 14
0
        static SmartObjectContext()
        {
            if (!DataSettings.DatabaseIsInstalled())
            {
                return;
            }

            var initializer = new MigrateDatabaseInitializer <SmartObjectContext, MigrationsConfiguration>
            {
                TablesToCheck = new[] { "Customer", "Discount", "Order", "Product", "ShoppingCartItem" }
            };

            Database.SetInitializer <SmartObjectContext>(initializer);
        }