I've got two entities with one-to-one relationship, let's call them Parent
and Child
. In the database, the Child
table has a FK to Parent
.
What I need to achieve is to have a navigation property to Child
on Parent
. The project doesn't use Fluent API, but uses attributes.
Can someone help me? In the end, I want to be able to use it something like this:
Set<Parent>().Include(w => w.ChildNavigationProp)