移除AutoMapper
This commit is contained in:
parent
17e8fc52ad
commit
6707411719
@ -1 +1 @@
|
|||||||
Subproject commit 95a6f31a5a1546e612566198f63a2f5e6ce24748
|
Subproject commit 785b5817c390daa4aa5d2076f7140fe25c3fd990
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
<add key="JiSheTeam" value="http://localhost:5020/v3/index.json" protocolVersion="3" allowInsecureConnections="true" />
|
<add key="JiSheTeam" value="http://192.168.111.248:9511/nuget/JiSheTeam/v3/index.json" protocolVersion="3" allowInsecureConnections="true" />
|
||||||
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
|
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
|
||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
@ -12,8 +12,6 @@ global using JiShe.IoT.Permissions;
|
|||||||
global using Microsoft.AspNetCore.Authorization;
|
global using Microsoft.AspNetCore.Authorization;
|
||||||
global using Microsoft.Extensions.Configuration;
|
global using Microsoft.Extensions.Configuration;
|
||||||
global using Volo.Abp.Application.Services;
|
global using Volo.Abp.Application.Services;
|
||||||
global using Volo.Abp.AutoMapper;
|
|
||||||
global using Volo.Abp.BackgroundJobs.Hangfire;
|
global using Volo.Abp.BackgroundJobs.Hangfire;
|
||||||
global using Volo.Abp.DependencyInjection;
|
global using Volo.Abp.DependencyInjection;
|
||||||
global using Volo.Abp.Modularity;
|
global using Volo.Abp.Modularity;
|
||||||
global using Profile = AutoMapper.Profile;
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
namespace JiShe.IoT
|
|
||||||
{
|
|
||||||
public class IoTApplicationAutoMapperProfile : Profile
|
|
||||||
{
|
|
||||||
public IoTApplicationAutoMapperProfile()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -35,10 +35,6 @@ namespace JiShe.IoT
|
|||||||
{
|
{
|
||||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||||
{
|
{
|
||||||
Configure<AbpAutoMapperOptions>(options =>
|
|
||||||
{
|
|
||||||
options.AddMaps<IoTApplicationModule>();
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,6 @@ global using JiShe.IoT.Users.Dto;
|
|||||||
global using Microsoft.Extensions.DependencyInjection;
|
global using Microsoft.Extensions.DependencyInjection;
|
||||||
global using Microsoft.Extensions.Logging;
|
global using Microsoft.Extensions.Logging;
|
||||||
global using Microsoft.Extensions.Logging.Abstractions;
|
global using Microsoft.Extensions.Logging.Abstractions;
|
||||||
global using Volo.Abp.AutoMapper;
|
|
||||||
global using Volo.Abp.Data;
|
global using Volo.Abp.Data;
|
||||||
global using Volo.Abp.DependencyInjection;
|
global using Volo.Abp.DependencyInjection;
|
||||||
global using Volo.Abp.Domain.Services;
|
global using Volo.Abp.Domain.Services;
|
||||||
|
|||||||
@ -29,7 +29,6 @@ namespace JiShe.IoT
|
|||||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||||
{
|
{
|
||||||
Configure<AbpMultiTenancyOptions>(options => { options.IsEnabled = MultiTenancyConsts.IsEnabled; });
|
Configure<AbpMultiTenancyOptions>(options => { options.IsEnabled = MultiTenancyConsts.IsEnabled; });
|
||||||
Configure<AbpAutoMapperOptions>(options => { options.AddMaps<IoTDomainModule>(); });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -22,15 +22,6 @@ namespace JiShe.IoT
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected IDistributedEventBus DistributedEventBus =>
|
protected IDistributedEventBus DistributedEventBus =>
|
||||||
LazyServiceProvider.LazyGetRequiredService<IDistributedEventBus>();
|
LazyServiceProvider.LazyGetRequiredService<IDistributedEventBus>();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 对象映射器
|
|
||||||
/// </summary>
|
|
||||||
protected IObjectMapper ObjectMapper => LazyServiceProvider.LazyGetService<IObjectMapper>(
|
|
||||||
provider =>
|
|
||||||
ObjectMapperContext == null
|
|
||||||
? provider.GetRequiredService<IObjectMapper>()
|
|
||||||
: (IObjectMapper)provider.GetRequiredService(
|
|
||||||
typeof(IObjectMapper<>).MakeGenericType(ObjectMapperContext)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user