From cc4d58a1bf2fff24f9979c92118fbf23afe443f4 Mon Sep 17 00:00:00 2001 From: Paweł Bernaciak Date: Sun, 22 Oct 2023 11:25:59 +0200 Subject: Fix models --- backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs') diff --git a/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs b/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs index 7e27940..32bb909 100644 --- a/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs @@ -173,11 +173,13 @@ namespace Elements.Data.Migrations modelBuilder.Entity("Elements.Data.Models.Element", b => { - b.HasOne("Elements.Data.Models.User", null) + b.HasOne("Elements.Data.Models.User", "User") .WithMany("Elements") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("User"); }); modelBuilder.Entity("Elements.Data.Models.Recipe", b => -- cgit v1.2.3