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
32 replies