I am designing a new application to track sports statistics. I am using with code first-first migration. I have the bare minimum POCO setup. The problem is that I am not happy with the design specifically how the players, teams and tournaments are relating to each other.
This is my player account classPlayerAccount class:
then this is the team classTeam class:
Then I have the tournament classTournament class:
On a tournament there are multiple instances of matches (games):
andAnd of course we have multiple instances of match results in one match. The ScoreScore
property determines who is the winner.
I have a multipart key that creates the relationship between a player anand a team:
And I have another like that for team and tournament: