Create new domain models for Match and League.
This commit is contained in:
parent
ba3c65d7a1
commit
2477d2b080
@ -17,6 +17,8 @@ public class DeadBallZoneLeagueDbContext : DbContext
|
||||
}
|
||||
public DbSet<Team> Teams { get; set; }
|
||||
public DbSet<Coach> Coaches { get; set; }
|
||||
public DbSet<League> Leagues { get; set; }
|
||||
public DbSet<Match> Matches { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
|
||||
6
EntityFrameworkCore.Domain/League.cs
Normal file
6
EntityFrameworkCore.Domain/League.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace EntityFrameworkCore.Domain;
|
||||
|
||||
public class League : BaseDomainModel
|
||||
{
|
||||
|
||||
}
|
||||
9
EntityFrameworkCore.Domain/Match.cs
Normal file
9
EntityFrameworkCore.Domain/Match.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace EntityFrameworkCore.Domain;
|
||||
|
||||
public class Match : BaseDomainModel
|
||||
{
|
||||
public int HomeTeamId { get; set; }
|
||||
public int AwayTeamId { get; set; }
|
||||
public decimal TicketPrice { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user