Skip to content

Commit 2d8097b

Browse files
authored
Merge pull request #171 from slubowsky/master
Upgrade to Automapper 12.0
2 parents cf617d6 + 00878b9 commit 2d8097b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/AutoMapper.Collection.Tests/OptionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public void Should_Retain_Options_Passed_In_Map()
1515
var collectionMapper = CreateMapper(cfg =>
1616
{
1717
cfg.AddCollectionMappers();
18-
cfg.CreateMap<ThingDto, Thing>().EqualityComparison((dto, entity) => dto.ID == entity.ID).AfterMap((_, __, ctx) => collectionTestValue = (int)ctx.Options.Items["Test"]);
18+
cfg.CreateMap<ThingDto, Thing>().EqualityComparison((dto, entity) => dto.ID == entity.ID).AfterMap((_, __, ctx) => collectionTestValue = (int)ctx.Items["Test"]);
1919
});
2020

2121
var normalTestValue = 0;
2222
var normalMapper = CreateMapper(cfg =>
2323
{
24-
cfg.CreateMap<ThingDto, Thing>().AfterMap((_, __, ctx) => normalTestValue = (int)ctx.Options.Items["Test"]);
24+
cfg.CreateMap<ThingDto, Thing>().AfterMap((_, __, ctx) => normalTestValue = (int)ctx.Items["Test"]);
2525
});
2626

2727
var dtos = new List<ThingDto>

src/AutoMapper.Collection/AutoMapper.Collection.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</ItemGroup>
2525

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

version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>8.0.0</VersionPrefix>
3+
<VersionPrefix>9.0.0</VersionPrefix>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)