This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I want to remove some entities at once. Maybe sometimes the complete rows in a table, but as far as I see there are only to UnitofWork.Remove methods. One takes a single entity and of takes a query object. How can delete efficiently a LINQ query or IQueryable collection? Many thanks in advance. |
|
|
We have an extension method for IQueryables which you can use for this. Include the Mindscape.LightSpeed.Linq namespace and then you will have the .Remove() method in scope. This method will execute a remove by query and is equivalent to the UnitOfWork.Remove(Query) method.
|
|
|
Great, I have been also looking for this. |
|