Skip to content

Commit a35cd38

Browse files
authored
Merge pull request #192 from DenisTDR/master
2 parents eafbf00 + c840367 commit a35cd38

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

src/AutoMapper.Collection.EntityFramework.Tests/AutoMapper.Collection.EntityFramework.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<AssemblyName>AutoMapper.Collection.EntityFramework.Tests</AssemblyName>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

src/AutoMapper.Collection.EntityFramework.Tests/MappingTestBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using System;
2+
using Microsoft.Extensions.Logging.Abstractions;
23

34
namespace AutoMapper.Collection
45
{
56
public abstract class MappingTestBase
67
{
78
protected IMapper CreateMapper(Action<IMapperConfigurationExpression> cfg)
89
{
9-
var map = new MapperConfiguration(cfg);
10+
var map = new MapperConfiguration(cfg, new NullLoggerFactory());
1011
map.CompileMappings();
1112

1213
var mapper = map.CreateMapper();

src/AutoMapper.Collection.EntityFramework/AutoMapper.Collection.EntityFramework.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>Collection updating support for EntityFramework with AutoMapper. Extends DBSet&lt;T&gt; with Persist&lt;TDto&gt;().InsertUpdate(dto) and Persist&lt;TDto&gt;().Delete(dto). Will find the matching object and will Insert/Update/Delete.</Description>
55
<Authors>Tyler Carlson</Authors>
6-
<TargetFrameworks>net8.0</TargetFrameworks>
6+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
77
<AssemblyName>AutoMapper.Collection.EntityFramework</AssemblyName>
88
<PackageId>AutoMapper.Collection.EntityFramework</PackageId>
99
<PackageIcon>icon.png</PackageIcon>
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="8.0.0" />
31+
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="9.0.1" />
3232
<PackageReference Include="EntityFramework" Version="6.5.1" />
3333
<PackageReference Include="MinVer" Version="2.3.1">
3434
<PrivateAssets>all</PrivateAssets>

src/AutoMapper.Collection.Tests/MapCollectionWithEqualityThreadSafetyTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System;
33
using System.Collections.Generic;
44
using System.Threading.Tasks;
5+
using Microsoft.Extensions.Logging.Abstractions;
56

67
namespace AutoMapper.Collection
78
{
@@ -14,7 +15,7 @@ public async Task Should_Work_When_Initialized_Concurrently()
1415
new MapperConfiguration(cfg =>
1516
{
1617
cfg.AddCollectionMappers();
17-
});
18+
}, new NullLoggerFactory());
1819
};
1920
var tasks = new List<Task>();
2021
for (var i = 0; i < 5; i++)

src/AutoMapper.Collection.Tests/MappingTestBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using System;
2+
using Microsoft.Extensions.Logging.Abstractions;
23

34
namespace AutoMapper.Collection
45
{
56
public abstract class MappingTestBase
67
{
78
protected IMapper CreateMapper(Action<IMapperConfigurationExpression> cfg)
89
{
9-
var map = new MapperConfiguration(cfg);
10+
var map = new MapperConfiguration(cfg, new NullLoggerFactory());
1011
map.CompileMappings();
1112

1213
var mapper = map.CreateMapper();

src/AutoMapper.Collection.Tests/ValueTypeTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66
using AutoMapper.EquivalencyExpression;
7+
using Microsoft.Extensions.Logging.Abstractions;
78
using Xunit;
89

910
namespace AutoMapper.Collection
@@ -23,7 +24,7 @@ public void MapValueTypes()
2324

2425
c.CreateMap<int, PersonNationality>()
2526
.EqualityComparison((src, dest) => dest.NationalityCountryId == src);
26-
}));
27+
}, new NullLoggerFactory()));
2728

2829
var persons = new[]
2930
{

src/AutoMapper.Collection/AutoMapper.Collection.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>Collection Add/Remove/Update support for AutoMapper. AutoMapper.Collection adds EqualityComparison Expressions for TypeMaps to determine if Source and Destination type are equivalent to each other when mapping collections.</Description>
55
<Authors>Tyler Carlson</Authors>
6-
<TargetFrameworks>net8.0</TargetFrameworks>
6+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
77
<AssemblyName>AutoMapper.Collection</AssemblyName>
88
<PackageId>AutoMapper.Collection</PackageId>
99
<PackageIcon>icon.png</PackageIcon>
@@ -24,7 +24,7 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="AutoMapper" Version="[14.0.0, 15.0.0)" />
27+
<PackageReference Include="AutoMapper" Version="[15.0.1, 16.0.0)" />
2828
<PackageReference Include="MinVer" Version="2.3.1">
2929
<PrivateAssets>all</PrivateAssets>
3030
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)