Skip to main content
edited tags
Link
RubberDuck
  • 30.9k
  • 6
  • 71
  • 174
Notice removed Draw attention by CommunityBot
Bounty Ended with Mathieu Guindon's answer chosen by CommunityBot
Tweeted twitter.com/#!/StackCodeReview/status/487017289020350465
deleted 30 characters in body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

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:

I am designing a new application to track sports statistics. I am using code first migration. I have the bare minimum POCO setup. The problem is I am not happy with the design specifically how the players, teams and tournaments are relating to each other.

This is my player account class

then this is the team class

Then I have the tournament class

On a tournament there are multiple instances of matches (games)

and of course we have multiple instances of match results in one match. The Score property determines who is the winner.

I have a multipart key that creates the relationship between a player an a team

And I have another like that for team and tournament

I am designing a new application to track sports statistics with code-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.

PlayerAccount class:

Team class:

Tournament class:

On a tournament there are multiple instances of matches (games):

And of course we have multiple instances of match results in one match. The Score property determines who is the winner.

I have a multipart key that creates the relationship between a player and a team:

And I have another like that for team and tournament:

Notice added Draw attention by secretAgentB
Bounty Started worth 50 reputation by secretAgentB
Please, no "thanks" and a signature - show thanks with upvotes
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Code First Data Model Tracking sports statistics

I appreciate any comments and suggestions..

-Regards,

Ryan

Code First Data Model

I appreciate any comments and suggestions..

-Regards,

Ryan

Tracking sports statistics

I appreciate any comments and suggestions.

added 72 characters in body
Source Link
Loading
Source Link
Loading