diff --git a/LaDOSE.Src/LaDOSE.Entity/Context/LaDOSEDbContext.cs b/LaDOSE.Src/LaDOSE.Entity/Context/LaDOSEDbContext.cs index 61bf22a..483e493 100644 --- a/LaDOSE.Src/LaDOSE.Entity/Context/LaDOSEDbContext.cs +++ b/LaDOSE.Src/LaDOSE.Entity/Context/LaDOSEDbContext.cs @@ -26,12 +26,12 @@ namespace LaDOSE.Entity.Context modelBuilder.Entity() .HasOne(pt => pt.Season) .WithMany(p => p.Games) - .HasForeignKey(pt => pt.GameId); + .HasForeignKey(pt => pt.SeasonId); modelBuilder.Entity() .HasOne(pt => pt.Game) .WithMany(p => p.Seasons) - .HasForeignKey(pt => pt.SeasonId); + .HasForeignKey(pt => pt.GameId); } }