© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
31 replies
Kindred

Entity Framework Core - how to setup this navigation correctly?

Hi all.

Very new to Entity Framework Core. I have three classes right now that I want to be database tables. In my Leaderboard class, I have an ICollection called Scores which is meant to hold a list of all LeaderboardScores that link to that Leaderboard. Though, I am unsure how to get it to actually link so the LeaderboardScores that reference that Leaderboard populate that navigation list?

My classes are below. I combined them into this one file for ease of sharing, they obviously aren't all in one file in Visual Studio: https://gdl.space/qoxeretoha.cs
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

Entity Framework Core updating tables in navigation fields
C#CC# / help
13mo ago
Entity framework core - database
C#CC# / help
2y ago
How to create entity correctly? [EF CORE]
C#CC# / help
2y ago
C# Entity core framework gaslighting
C#CC# / help
2y ago