KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Hi I'm looking for efficient way to delete multiple records at once. I'm deleting 400 records and it takes 8-15 seconds. Here is my code using (var entities = new Entity()) { foreach (Item item in entities.Items.Where(x => x.id == id)) entities.DeleteObject(item); entities.SaveChanges(); }
Tags (comma-separated)
Save Edits
Cancel