From 3f66f9062cf8bf8bf0411593c1ab7bf16104fbbb Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Wed, 6 May 2020 21:40:22 +0800 Subject: [PATCH] Add AbpTenantManagementEntityFrameworkCoreModule to host module dependencies --- .../BloggingService.Host/BloggingService.Host.csproj | 3 ++- .../BloggingService.Host/BloggingServiceHostModule.cs | 6 ++++-- .../ProductService.Host/ProductService.Host.csproj | 3 ++- .../ProductService.Host/ProductServiceHostModule.cs | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj b/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj index 58c3d59c40..14493fcf0a 100644 --- a/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj +++ b/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj @@ -36,6 +36,7 @@ + @@ -44,5 +45,5 @@ - + diff --git a/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs b/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs index 3b10225ef9..4c5b7b6d3b 100644 --- a/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs +++ b/samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs @@ -29,6 +29,7 @@ using Volo.Abp.MultiTenancy; using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.Security.Claims; using Volo.Abp.SettingManagement.EntityFrameworkCore; +using Volo.Abp.TenantManagement.EntityFrameworkCore; using Volo.Abp.Threading; using Volo.Blogging; using Volo.Blogging.Blogs; @@ -49,7 +50,8 @@ namespace BloggingService.Host typeof(BloggingApplicationModule), typeof(AbpHttpClientIdentityModelWebModule), typeof(AbpIdentityHttpApiClientModule), - typeof(AbpAspNetCoreMultiTenancyModule) + typeof(AbpAspNetCoreMultiTenancyModule), + typeof(AbpTenantManagementEntityFrameworkCoreModule) )] public class BloggingServiceHostModule : AbpModule { @@ -82,7 +84,7 @@ namespace BloggingService.Host { options.Languages.Add(new LanguageInfo("en", "en", "English")); }); - + Configure(options => { options.UseSqlServer(); diff --git a/samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj b/samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj index 5b3247fcef..7027c3294a 100644 --- a/samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj +++ b/samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj @@ -34,6 +34,7 @@ + @@ -42,5 +43,5 @@ - + diff --git a/samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs b/samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs index 92993809b4..e03cf26182 100644 --- a/samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs +++ b/samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs @@ -25,6 +25,7 @@ using Volo.Abp.MultiTenancy; using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.Security.Claims; using Volo.Abp.SettingManagement.EntityFrameworkCore; +using Volo.Abp.TenantManagement.EntityFrameworkCore; using Volo.Abp.Threading; namespace ProductService.Host @@ -39,7 +40,8 @@ namespace ProductService.Host typeof(ProductManagementApplicationModule), typeof(ProductManagementHttpApiModule), typeof(ProductManagementEntityFrameworkCoreModule), - typeof(AbpAspNetCoreMultiTenancyModule) + typeof(AbpAspNetCoreMultiTenancyModule), + typeof(AbpTenantManagementEntityFrameworkCoreModule) )] public class ProductServiceHostModule : AbpModule {