Add relationship between League and Team.
This commit is contained in:
parent
b1f99dc57a
commit
a0733b4ebb
@ -3,4 +3,5 @@
|
||||
public class League : BaseDomainModel
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public List<Team> Teams { get; set; }
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
public class Team : BaseDomainModel
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public League League { get; set; }
|
||||
public int LeagueId { get; set; }
|
||||
public int CoachId { get; set; }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user