The following statement should delete someCars from allCars, and it works, however I was wondering if there is a better solution which specifically uses only linq
foreach (var car in someCars)
{
db.allCars.DeleteObject(car);
}
Note that db is the instance of the db entities.
Any help would be much appreciated.