fix: do not delete lecture hall
This commit is contained in:
parent
194dd1b729
commit
9493d4340f
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user