From 642d533a491b09140ab76c08449c7952f27c7be9 Mon Sep 17 00:00:00 2001 From: Darkstack <1835601+darkstack@users.noreply.github.com> Date: Sat, 6 Oct 2018 14:56:56 +0200 Subject: [PATCH] :( --- LaDOSE.Src/LaDOSE.Entity/Context/LaDOSEDbContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }