Browse Source

Removed AutoMapper from Feature Management for Web

pull/11778/head
malik masis 5 years ago
parent
commit
b475a81b36
  1. 12
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs
  2. 11
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/FeatureManagementWebAutoMapperProfile.cs
  3. 1
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Volo.Abp.FeatureManagement.Web.csproj

12
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs

@ -2,7 +2,6 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc.Localization;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
using Volo.Abp.AutoMapper;
using Volo.Abp.FeatureManagement.Localization;
using Volo.Abp.Http.ProxyScripting.Generators.JQuery;
using Volo.Abp.Modularity;
@ -12,8 +11,7 @@ namespace Volo.Abp.FeatureManagement;
[DependsOn(
typeof(AbpFeatureManagementApplicationContractsModule),
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
typeof(AbpAutoMapperModule)
typeof(AbpAspNetCoreMvcUiThemeSharedModule)
)]
public class AbpFeatureManagementWebModule : AbpModule
{
@ -37,16 +35,10 @@ public class AbpFeatureManagementWebModule : AbpModule
options.FileSets.AddEmbedded<AbpFeatureManagementWebModule>();
});
context.Services.AddAutoMapperObjectMapper<AbpFeatureManagementWebModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddProfile<FeatureManagementWebAutoMapperProfile>(validate: true);
});
Configure<RazorPagesOptions>(options =>
{
//Configure authorization.
});
});
Configure<DynamicJavaScriptProxyOptions>(options =>
{

11
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/FeatureManagementWebAutoMapperProfile.cs

@ -1,11 +0,0 @@
using AutoMapper;
namespace Volo.Abp.FeatureManagement;
public class FeatureManagementWebAutoMapperProfile : Profile
{
public FeatureManagementWebAutoMapperProfile()
{
//Create mappings.
}
}

1
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Volo.Abp.FeatureManagement.Web.csproj

@ -32,7 +32,6 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AutoMapper\Volo.Abp.AutoMapper.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared\Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.csproj" />
<ProjectReference Include="..\Volo.Abp.FeatureManagement.Application.Contracts\Volo.Abp.FeatureManagement.Application.Contracts.csproj" />
</ItemGroup>

Loading…
Cancel
Save