-
-
Save Vannevelj/a04b40d00ecc68b5b4e8 to your computer and use it in GitHub Desktop.
gamesnshizzle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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