From fade1d61e911e61c13cfc517052a441f899f8cc6 Mon Sep 17 00:00:00 2001 From: gdlcf88 <47396430@qq.com> Date: Sun, 31 May 2020 20:20:44 +0800 Subject: [PATCH] Renamed ConfigureEShopEasyMall to ConfigureEasyMall --- .../EasyMallMigrationsDbContext.cs | 15 +++------------ .../EntityFrameworkCore/EasyMallDbContext.cs | 2 +- .../EasyMallDbContextModelCreatingExtensions.cs | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EasyMallMigrationsDbContext.cs b/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EasyMallMigrationsDbContext.cs index aa2f339e..f1ac1f44 100644 --- a/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EasyMallMigrationsDbContext.cs +++ b/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EasyMallMigrationsDbContext.cs @@ -1,15 +1,10 @@ -using EasyAbp.EShop.Baskets.EntityFrameworkCore; -using EasyAbp.EShop.Orders.EntityFrameworkCore; -using EasyAbp.EShop.Payments.EntityFrameworkCore; -using EasyAbp.EShop.Products.EntityFrameworkCore; -using EasyAbp.EShop.Stores.EntityFrameworkCore; +using EasyAbp.EShop.EntityFrameworkCore; using EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Volo.Abp.AuditLogging.EntityFrameworkCore; using Volo.Abp.BackgroundJobs.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.FeatureManagement.EntityFrameworkCore; -using Volo.Abp.Identity; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.IdentityServer.EntityFrameworkCore; using Volo.Abp.PermissionManagement.EntityFrameworkCore; @@ -48,12 +43,8 @@ namespace EasyMall.EntityFrameworkCore /* Configure your own tables/entities inside the ConfigureEasyMall method */ - builder.ConfigureEShopEasyMall(); - builder.ConfigureEShopBaskets(); - builder.ConfigureEShopOrders(); - builder.ConfigureEShopPayments(); - builder.ConfigureEShopProducts(); - builder.ConfigureEShopStores(); + builder.ConfigureEasyMall(); + builder.ConfigureEShop(); builder.ConfigurePaymentServiceWeChatPay(); } diff --git a/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContext.cs b/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContext.cs index b60e5b22..7b614d3b 100644 --- a/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContext.cs +++ b/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContext.cs @@ -52,7 +52,7 @@ namespace EasyMall.EntityFrameworkCore /* Configure your own tables/entities inside the ConfigureEasyMall method */ - builder.ConfigureEShopEasyMall(); + builder.ConfigureEasyMall(); } } } diff --git a/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContextModelCreatingExtensions.cs b/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContextModelCreatingExtensions.cs index c2e3a9c5..97790ecc 100644 --- a/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContextModelCreatingExtensions.cs +++ b/samples/EasyMall/aspnet-core/src/EasyMall.EntityFrameworkCore/EntityFrameworkCore/EasyMallDbContextModelCreatingExtensions.cs @@ -5,7 +5,7 @@ namespace EasyMall.EntityFrameworkCore { public static class EasyMallDbContextModelCreatingExtensions { - public static void ConfigureEShopEasyMall(this ModelBuilder builder) + public static void ConfigureEasyMall(this ModelBuilder builder) { Check.NotNull(builder, nameof(builder));