Browse Source
Merge pull request #3843 from abpframework/liangshiwei/samples-microservice
Add AbpTenantManagementEntityFrameworkCoreModule to host module dependencies
pull/3850/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
11 additions and
5 deletions
-
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingService.Host.csproj
-
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs
-
samples/MicroserviceDemo/microservices/ProductService.Host/ProductService.Host.csproj
-
samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs
|
|
|
@ -36,6 +36,7 @@ |
|
|
|
<ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.EntityFrameworkCore\Volo.Abp.SettingManagement.EntityFrameworkCore.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" /> |
|
|
|
<ProjectReference Include="..\..\shared\MsDemo.Shared\MsDemo.Shared.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.EntityFrameworkCore\Volo.Abp.TenantManagement.EntityFrameworkCore.csproj" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -44,5 +45,5 @@ |
|
|
|
<EmbeddedResource Remove="Logs\**" /> |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -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<AbpDbContextOptions>(options => |
|
|
|
{ |
|
|
|
options.UseSqlServer(); |
|
|
|
|
|
|
|
@ -34,6 +34,7 @@ |
|
|
|
<ProjectReference Include="..\..\modules\product\src\ProductManagement.EntityFrameworkCore\ProductManagement.EntityFrameworkCore.csproj" /> |
|
|
|
<ProjectReference Include="..\..\modules\product\src\ProductManagement.HttpApi\ProductManagement.HttpApi.csproj" /> |
|
|
|
<ProjectReference Include="..\..\shared\MsDemo.Shared\MsDemo.Shared.csproj" /> |
|
|
|
<ProjectReference Include="..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.EntityFrameworkCore\Volo.Abp.TenantManagement.EntityFrameworkCore.csproj" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -42,5 +43,5 @@ |
|
|
|
<EmbeddedResource Remove="Logs\**" /> |
|
|
|
<None Remove="Logs\**" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -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 |
|
|
|
{ |
|
|
|
|