> 2 InverseProperties gives: The convention invocations have reached the recursion limit. This is likely an issue in EF Core, please report it. #15738
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-3.0
type-bug
Milestone
I am trying to setup multiple entities with inheritance. See class definitions (hiding irrelevant properties):
When creating a migration with these classes the
PartialAnswers
table gets 4 columns which are not needed.I want them to all use the column
AnswerId
which is already part of the abstract classPartialAnswer
. I found out that the columns come from the lists in the classed derived fromAnswer
(SO). When adding theInverseProperty
annotation I can specify thatAnswerId
should be used. Sadly I can only do this for 2 out of the 4 (and more coming) classes.One example for one of the classes using
InverseProperty
:When adding the property to a third class inheriting from
Answer
the migration fails and gives this error (It doesn't matter which classes I choose. It just limits at 2):The text was updated successfully, but these errors were encountered: