Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
rename
  • Loading branch information
lbargaoanu committed May 8, 2019
commit 7b99713f236f07aae50e2c700454c10dfcac0c00
8 changes: 4 additions & 4 deletions src/AutoMapper/ProfileMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ private void AddMemberMaps(LambdaExpression[] includedMembers, TypeMap mainMap,

private void ApplyDerivedMaps(TypeMap baseMap, TypeMap typeMap, IConfigurationProvider configurationProvider)
{
foreach (var inheritedTypeMap in configurationProvider.GetIncludedTypeMaps(typeMap.IncludedDerivedTypes))
foreach (var derivedMap in configurationProvider.GetIncludedTypeMaps(typeMap.IncludedDerivedTypes))
{
inheritedTypeMap.IncludeBaseTypes(typeMap.SourceType, typeMap.DestinationType);
inheritedTypeMap.AddInheritedMap(baseMap);
ApplyDerivedMaps(baseMap, inheritedTypeMap, configurationProvider);
derivedMap.IncludeBaseTypes(typeMap.SourceType, typeMap.DestinationType);
derivedMap.AddInheritedMap(baseMap);
ApplyDerivedMaps(baseMap, derivedMap, configurationProvider);
}
}
}
Expand Down