Fix the sql schema #6
@ -20,6 +20,6 @@ public class LectureHallConfiguration : IEntityTypeConfiguration<LectureHall>
|
|||||||
.HasOne(l => l.Campus)
|
.HasOne(l => l.Campus)
|
||||||
.WithMany(c => c.LectureHalls)
|
.WithMany(c => c.LectureHalls)
|
||||||
.HasForeignKey(d => d.CampusId)
|
.HasForeignKey(d => d.CampusId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user