C#C
C#3y ago
mindhardt

❔ ✅ EFCore: How to add entity with one-to-many relationship without navigation property in 1 query

In my ApplicationUser class I have Characters property (see screenshots), but Character does not have a back navigation property. I want to add Character into a database and attach it to a user with specified Id in one query. Any tips with LINQ?
image.png
Was this page helpful?