Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<AssemblyName>AutoMapper.Collection.EntityFrameworkCore.Tests</AssemblyName>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="14.0.0" />
<PackageReference Include="AutoMapper" Version="[15.0.1, 16.0.0)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using AutoMapper.EquivalencyExpression;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging.Abstractions;

namespace AutoMapper.Collection.EntityFrameworkCore.Tests
{
Expand All @@ -13,7 +14,7 @@ public EntityFrameworkCoreUsingCtorTests()
x.AddCollectionMappers();
x.CreateMap<ThingDto, Thing>().ReverseMap();
x.UseEntityFrameworkCoreModel<DB>();
}));
}, new NullLoggerFactory()));

db = new DB();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using AutoMapper.EquivalencyExpression;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;

namespace AutoMapper.Collection.EntityFrameworkCore.Tests
{
Expand All @@ -26,7 +27,7 @@ public EntityFramworkCoreUsingDITests()
x.AddCollectionMappers();
x.UseEntityFrameworkCoreModel<DB>(_serviceProvider);
x.CreateMap<ThingDto, Thing>().ReverseMap();
}));
}, new NullLoggerFactory()));

_serviceScope = _serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope();
db = _serviceScope.ServiceProvider.GetRequiredService<DB>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<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>
<Authors>Tyler Carlson</Authors>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<AssemblyName>AutoMapper.Collection.EntityFrameworkCore</AssemblyName>
<PackageId>AutoMapper.Collection.EntityFrameworkCore</PackageId>
<PackageIcon>icon.png</PackageIcon>
Expand All @@ -24,9 +24,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper.Collection" Version="[11.0.0,12.0.0)" />
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[8.0.0,9.0.0)" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.2" />
<PackageReference Include="AutoMapper.Collection" Version="[12.0.0,13.0.0)" />
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[9.0.0,10.0.0)" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.7" />
</ItemGroup>

<ItemGroup>
Expand Down