I'm trying to migrate my old app to the new EF Core but I cannot find some relationships like:
HasRequired(o => o.Document).WithOptional(o => o.CancelNote);
Is there some extension methods? I cannot find on the docs.
The HasRequired
I think that is possible to substitute with HasOne()
method, but how about the WithOptional()
?
Other thing, according to the docs the entity not uses the virtual
keyword to create the navigation properties, how lazy load will work?