According to How to add a parent record with its children records in EF Core the following should work:
Model Builder