locked
How to batch delete in code first RRS feed

  • Question

  • Hi I tried to delete many objects how to make it just one sql delete/from statements rather than multiple delete statements.

    My code looks like this:

    foreach (var sa in schedule.ScheduleAssignments.ToList())

        context.ScheduleAssignments.Remove(sa);

    Monday, September 5, 2011 10:19 AM

Answers

All replies