Skip to content

Commit 7ecb8f0

Browse files
committed
Fix naming of GeneratePropertyMapsExpressionFeature
1 parent 8d3011d commit 7ecb8f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/AutoMapper.Collection/Configuration/GeneratePropertyMapsExpressionFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace AutoMapper.Collection.Configuration
99
{
10-
public class GeneratePropertyMapsnFeature : IGlobalFeature
10+
public class GeneratePropertyMapsExpressionFeature : IGlobalFeature
1111
{
1212
private readonly List<Func<Func<Type, object>, IGeneratePropertyMaps>> _generators = new List<Func<Func<Type, object>, IGeneratePropertyMaps>>();
1313

src/AutoMapper.Collection/EquivalencyExpression/EquivalentExpressions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static class EquivalentExpressions
1111
{
1212
public static void AddCollectionMappers(this IMapperConfigurationExpression cfg)
1313
{
14-
cfg.Features.Set(new GeneratePropertyMapsnFeature());
14+
cfg.Features.Set(new GeneratePropertyMapsExpressionFeature());
1515
cfg.InsertBefore<ReadOnlyCollectionMapper>(
1616
new ObjectToEquivalencyExpressionByEquivalencyExistingMapper(),
1717
new EquivalentExpressionAddRemoveCollectionMapper());
@@ -89,14 +89,14 @@ public static IMappingExpression<TSource, TDestination> EqualityComparison<TSour
8989
public static void SetGeneratePropertyMaps<TGeneratePropertyMaps>(this IMapperConfigurationExpression cfg)
9090
where TGeneratePropertyMaps : IGeneratePropertyMaps
9191
{
92-
(cfg.Features.Get<GeneratePropertyMapsnFeature>()
92+
(cfg.Features.Get<GeneratePropertyMapsExpressionFeature>()
9393
?? throw new ArgumentException("Invoke the IMapperConfigurationExpression.AddCollectionMappers() before adding IGeneratePropertyMaps."))
9494
.Add(serviceCtor => (IGeneratePropertyMaps)serviceCtor(typeof(TGeneratePropertyMaps)));
9595
}
9696

9797
public static void SetGeneratePropertyMaps(this IMapperConfigurationExpression cfg, IGeneratePropertyMaps generatePropertyMaps)
9898
{
99-
(cfg.Features.Get<GeneratePropertyMapsnFeature>()
99+
(cfg.Features.Get<GeneratePropertyMapsExpressionFeature>()
100100
?? throw new ArgumentException("Invoke the IMapperConfigurationExpression.AddCollectionMappers() before adding IGeneratePropertyMaps."))
101101
.Add(_ => generatePropertyMaps);
102102
}

src/AutoMapper.Collection/Runtime/GeneratePropertyMapsnFeature.cs renamed to src/AutoMapper.Collection/Runtime/GeneratePropertyMapsFeature.cs

File renamed without changes.

0 commit comments

Comments
 (0)