© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
12 replies
mindhardt

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

In my
ApplicationUser
ApplicationUser
class I have
Characters
Characters
property (see screenshots), but
Character
Character
does not have a back navigation property. I want to add
Character
Character
into a database and attach it to a user with specified Id in one query. Any tips with LINQ?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ EFCORE DESIGN ONE TO MANY
C#CC# / help
3y ago
✅ Many-to-many relationship using Entity Framework
C#CC# / help
2y ago
EF Core Many to Many relationship through Entity
C#CC# / help
14mo ago
Entity Framework Core Issue - Many to Many relationship
C#CC# / help
2y ago