Skip to content

Commit 26cb8b1

Browse files
authored
Merge pull request #84 from DenisTDR/master
Updates target frameworks and dependencies
2 parents 3e999a6 + 3dbdca8 commit 26cb8b1

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/AutoMapper.Collection.EntityFrameworkCore.Tests/AutoMapper.Collection.EntityFrameworkCore.Tests.csproj

Lines changed: 2 additions & 2 deletions
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.EntityFrameworkCore.Tests</AssemblyName>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="AutoMapper" Version="14.0.0" />
14+
<PackageReference Include="AutoMapper" Version="[15.0.1, 16.0.0)" />
1515
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" />
1616
</ItemGroup>
1717

src/AutoMapper.Collection.EntityFrameworkCore.Tests/EntityFrameworkCoreUsingCtorTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using AutoMapper.EquivalencyExpression;
33
using Microsoft.EntityFrameworkCore;
4+
using Microsoft.Extensions.Logging.Abstractions;
45

56
namespace AutoMapper.Collection.EntityFrameworkCore.Tests
67
{
@@ -13,7 +14,7 @@ public EntityFrameworkCoreUsingCtorTests()
1314
x.AddCollectionMappers();
1415
x.CreateMap<ThingDto, Thing>().ReverseMap();
1516
x.UseEntityFrameworkCoreModel<DB>();
16-
}));
17+
}, new NullLoggerFactory()));
1718

1819
db = new DB();
1920
}

src/AutoMapper.Collection.EntityFrameworkCore.Tests/EntityFrameworkCoreUsingDITests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using AutoMapper.EquivalencyExpression;
33
using Microsoft.EntityFrameworkCore;
44
using Microsoft.Extensions.DependencyInjection;
5+
using Microsoft.Extensions.Logging.Abstractions;
56

67
namespace AutoMapper.Collection.EntityFrameworkCore.Tests
78
{
@@ -26,7 +27,7 @@ public EntityFramworkCoreUsingDITests()
2627
x.AddCollectionMappers();
2728
x.UseEntityFrameworkCoreModel<DB>(_serviceProvider);
2829
x.CreateMap<ThingDto, Thing>().ReverseMap();
29-
}));
30+
}, new NullLoggerFactory()));
3031

3132
_serviceScope = _serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope();
3233
db = _serviceScope.ServiceProvider.GetRequiredService<DB>();

src/AutoMapper.Collection.EntityFrameworkCore/AutoMapper.Collection.EntityFrameworkCore.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>Collection updating support for EntityFrameworkCore 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.EntityFrameworkCore</AssemblyName>
88
<PackageId>AutoMapper.Collection.EntityFrameworkCore</PackageId>
99
<PackageIcon>icon.png</PackageIcon>
@@ -24,9 +24,9 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="AutoMapper.Collection" Version="[11.0.0,12.0.0)" />
28-
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[8.0.0,9.0.0)" />
29-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.2" />
27+
<PackageReference Include="AutoMapper.Collection" Version="[12.0.0,13.0.0)" />
28+
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[9.0.0,10.0.0)" />
29+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.7" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

0 commit comments

Comments
 (0)