Instead:
db.logins.DeleteOnSubmit(remove);
Call DeleteAllOnSubmit() , for example:
db.logins.DeleteAllOnSubmit(remove.ToList());
After that, be sure to call db.SubmitChanges() . You can use .AsEnumerable() , either, or. If this is a big delete operation, you might consider going around LINQ in this case.
Nick craver
source share