Skip to content

Commit d6dd56a

Browse files
committed
Treat subclasses with interface types the same as parent classes with interface types
- All tests passing
1 parent 325cf1e commit d6dd56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FluentNHibernate/Visitors/SeparateSubclassVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private IDictionary<int, IList<IIndeterminateSubclassMappingProvider>> SortByDis
9191
var subclassType = subclassProvider.EntityType;
9292
var level = 0;
9393

94-
bool implOfParent = parentType.IsInterface
94+
bool implOfParent = (parentType.IsInterface || subclassType.IsInterface)
9595
? DistanceFromParentInterface(parentType, subclassType, ref level)
9696
: DistanceFromParentBase(parentType, subclassType.BaseType, ref level);
9797

0 commit comments

Comments
 (0)