Skip to content

Instantly share code, notes, and snippets.

@Vannevelj
Created July 12, 2014 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vannevelj/a04b40d00ecc68b5b4e8 to your computer and use it in GitHub Desktop.
Save Vannevelj/a04b40d00ecc68b5b4e8 to your computer and use it in GitHub Desktop.
gamesnshizzle
public class Player
{
public int Id { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public virtual ICollection<Team> Teams { get; set; }
//public virtual ICollection<MatchStatistics> MatchStatistics { get; set; }
}
public class Team
{
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<Player> Players { get; set; }
public virtual ICollection<Tournament> Tournaments { get; set; }
}
public class Tournament
{
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<Team> Teams { get; set; }
public virtual ICollection<Match> Matches { get; set; }
}
public class Match
{
public int Id { get; set; }
public virtual Tournament Tournament { get; set; }
public virtual ICollection<MatchResult> MatchResults { get; set; }
}
public class MatchResult
{
public int Id { get; set; }
public double Score { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment