In my application I have Lecturers and they have list of Courses they can teach and when I\'m deleting a course I want to remove connection to lecturers. Here\'s the code:>
The Courses collection of below line should be null or empty.
Courses
var toRemove = db.Lecturers .Where(l => l.Courses.Contains(courseFromDb)).ToList();