fix: do not delete lecture hall

This commit is contained in:
Polianin Nikita 2024-01-26 07:45:46 +03:00
parent 194dd1b729
commit 9493d4340f

View File

@ -20,6 +20,6 @@ public class LectureHallConfiguration : IEntityTypeConfiguration<LectureHall>
.HasOne(l => l.Campus)
.WithMany(c => c.LectureHalls)
.HasForeignKey(d => d.CampusId)
.OnDelete(DeleteBehavior.Cascade);
.OnDelete(DeleteBehavior.Restrict);
}
}