bulk delete in entity framework

c#, entity-framework, linq-to-sql

Solution

There is an interesting NuGet package that lets you do batch deletes and updates:

Problem

I'd like to bulk delete records from a table using linq. There's a post that describes how to do it: Bulk-deleting in LINQ to Entities ``` var query = from c in ctx.Customers where c.SalesPerson.Email == "..." select c; query.Delete(); ``` But the function "Delete" doesn't exist in my var variable. Furthermore, the function "SubmitChanges" doesn't exist on my context.

Original source

Related problems