Browse Source
Merge pull request #24176 from abpframework/maliming-patch-3
Downgrade AutoMapper to 14.0
pull/24179/head
Engincan VESKE
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
4 deletions
-
Directory.Packages.props
-
framework/src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AbpAutoMapperModule.cs
-
framework/test/Volo.Abp.AutoMapper.Tests/Volo/Abp/AutoMapper/AutoMapperExpressionExtensions_Tests.cs
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
<PackageVersion Include="Autofac" Version="8.4.0" /> |
|
|
|
<PackageVersion Include="Autofac.Extensions.DependencyInjection" Version="10.0.0" /> |
|
|
|
<PackageVersion Include="Autofac.Extras.DynamicProxy" Version="7.1.0" /> |
|
|
|
<PackageVersion Include="AutoMapper" Version="15.0.1" /> |
|
|
|
<PackageVersion Include="AutoMapper" Version="14.0.0" /> |
|
|
|
<PackageVersion Include="Asp.Versioning.Mvc" Version="8.1.0" /> |
|
|
|
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" /> |
|
|
|
<PackageVersion Include="AWSSDK.S3" Version="4.0.7.2" /> |
|
|
|
|
|
|
|
@ -2,7 +2,6 @@ |
|
|
|
using AutoMapper; |
|
|
|
using AutoMapper.Internal; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using Volo.Abp.Auditing; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
@ -41,7 +40,7 @@ public class AbpAutoMapperModule : AbpModule |
|
|
|
configurator(autoMapperConfigurationContext); |
|
|
|
} |
|
|
|
|
|
|
|
var mapperConfiguration = new MapperConfiguration(mapperConfigurationExpression, sp.GetRequiredService<ILoggerFactory>()); |
|
|
|
var mapperConfiguration = new MapperConfiguration(mapperConfigurationExpression); |
|
|
|
|
|
|
|
foreach (var profileType in options.ValidatingProfiles) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -102,7 +102,7 @@ public class AutoMapperExpressionExtensions_Tests |
|
|
|
|
|
|
|
private static IMapper CreateMapper(Action<IMapperConfigurationExpression> configure) |
|
|
|
{ |
|
|
|
var configuration = new MapperConfiguration(configure, NullLoggerFactory.Instance); |
|
|
|
var configuration = new MapperConfiguration(configure); |
|
|
|
configuration.AssertConfigurationIsValid(); |
|
|
|
return configuration.CreateMapper(); |
|
|
|
} |
|
|
|
|