Skip to content

Commit

Permalink
Merge pull request #171 from slubowsky/master
Browse files Browse the repository at this point in the history
Upgrade to Automapper 12.0
  • Loading branch information
lbargaoanu authored Oct 4, 2022
2 parents cf617d6 + 00878b9 commit 2d8097b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AutoMapper.Collection.Tests/OptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public void Should_Retain_Options_Passed_In_Map()
var collectionMapper = CreateMapper(cfg =>
{
cfg.AddCollectionMappers();
cfg.CreateMap<ThingDto, Thing>().EqualityComparison((dto, entity) => dto.ID == entity.ID).AfterMap((_, __, ctx) => collectionTestValue = (int)ctx.Options.Items["Test"]);
cfg.CreateMap<ThingDto, Thing>().EqualityComparison((dto, entity) => dto.ID == entity.ID).AfterMap((_, __, ctx) => collectionTestValue = (int)ctx.Items["Test"]);
});

var normalTestValue = 0;
var normalMapper = CreateMapper(cfg =>
{
cfg.CreateMap<ThingDto, Thing>().AfterMap((_, __, ctx) => normalTestValue = (int)ctx.Options.Items["Test"]);
cfg.CreateMap<ThingDto, Thing>().AfterMap((_, __, ctx) => normalTestValue = (int)ctx.Items["Test"]);
});

var dtos = new List<ThingDto>
Expand Down
2 changes: 1 addition & 1 deletion src/AutoMapper.Collection/AutoMapper.Collection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="[11.0.0, 12.0.0)" />
<PackageReference Include="AutoMapper" Version="[12.0.0, 13.0.0)" />
<PackageReference Include="MinVer" Version="2.3.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>8.0.0</VersionPrefix>
<VersionPrefix>9.0.0</VersionPrefix>
</PropertyGroup>
</Project>

0 comments on commit 2d8097b

Please sign in to comment.