diff --git a/src/GovUk.Education.ExploreEducationStatistics.Admin/Migrations/ContentMigrations/ContentDbContextModelSnapshot.cs b/src/GovUk.Education.ExploreEducationStatistics.Admin/Migrations/ContentMigrations/ContentDbContextModelSnapshot.cs index 830ba7175a..2877ed7a1a 100644 --- a/src/GovUk.Education.ExploreEducationStatistics.Admin/Migrations/ContentMigrations/ContentDbContextModelSnapshot.cs +++ b/src/GovUk.Education.ExploreEducationStatistics.Admin/Migrations/ContentMigrations/ContentDbContextModelSnapshot.cs @@ -1751,7 +1751,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("GovUk.Education.ExploreEducationStatistics.Content.Model.MethodologyRedirect", b => { b.HasOne("GovUk.Education.ExploreEducationStatistics.Content.Model.MethodologyVersion", "MethodologyVersion") - .WithMany() + .WithMany("MethodologyRedirects") .HasForeignKey("MethodologyVersionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -1892,7 +1892,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("GovUk.Education.ExploreEducationStatistics.Content.Model.PublicationRedirect", b => { b.HasOne("GovUk.Education.ExploreEducationStatistics.Content.Model.Publication", "Publication") - .WithMany() + .WithMany("PublicationRedirects") .HasForeignKey("PublicationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -1933,7 +1933,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("GovUk.Education.ExploreEducationStatistics.Content.Model.ReleaseRedirect", b => { b.HasOne("GovUk.Education.ExploreEducationStatistics.Content.Model.Release", "Release") - .WithMany() + .WithMany("ReleaseRedirects") .HasForeignKey("ReleaseId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2192,6 +2192,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("MethodologyContent") .IsRequired(); + b.Navigation("MethodologyRedirects"); + b.Navigation("Notes"); }); @@ -2199,6 +2201,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Navigation("Methodologies"); + b.Navigation("PublicationRedirects"); + b.Navigation("ReleaseVersions"); b.Navigation("Releases"); @@ -2206,6 +2210,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("GovUk.Education.ExploreEducationStatistics.Content.Model.Release", b => { + b.Navigation("ReleaseRedirects"); + b.Navigation("Versions"); });