Include child of nullable in EF Core
Hi,
I want an Activity which has a nullable HeaderGroupId in the db. After scaffolding the db to my project with ef core scaffold command, both the HeaderGroupId and the HeaderGroup of Activity are nullable (marked with ?). I'm okay with that, but when I want to include a child of this nullable HeaderGroup I get a warning and I don't understand how I'm supposed to avoid it.
What's the correct approach?
I want an Activity which has a nullable HeaderGroupId in the db. After scaffolding the db to my project with ef core scaffold command, both the HeaderGroupId and the HeaderGroup of Activity are nullable (marked with ?). I'm okay with that, but when I want to include a child of this nullable HeaderGroup I get a warning and I don't understand how I'm supposed to avoid it.
What's the correct approach?
