EFCore Multi-level relation
I have been wondering if it is possible to describe a multi level relation using the fluent api from EFCore.
For example
where MemberOfGroups is based on the Members from Roles from the Group?
3 Replies
Confused about question
Yes such relations are possible. You just define each relationship individually.
But I don't understand what you are asking in the last sentence?
there is nothing unusual for now
you have to define all the primary keys and then which direction you want the relationship (so for example if Group should have an FK to User or if there should be a third relationships table)