When I was working on this test
I saw big disadvantage, there is no method created to delete collection of items at our database, on the other hand other ORMs have this feature. I think it’s good idea to have this feature, so I created topic with my idea. If you need this feature, please vote.
Now :
1 2 3 4 5 |
foreach (var item in collection) { db.Customers.Remove(item); } db.SaveChanges(); |
After :
1 2 |
db.Customers.Remove(collection); db.SaveChanges(); |