diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-22 11:25:59 +0200 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-22 11:25:59 +0200 |
| commit | cc4d58a1bf2fff24f9979c92118fbf23afe443f4 (patch) | |
| tree | 0ddf0903f49ba912cf75f7b9640b748ad476f221 /backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs | |
| parent | 1e2d02bf49f6ab9f5f239176b14089a03d84e280 (diff) | |
Fix models
Diffstat (limited to 'backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs')
| -rw-r--r-- | backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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 => |
