I am trying to delete multiple rows as such. The following code does the trick but kind of worries as the ForEach seems to indicate it may delete more than what the Where clause has. Is there a better way to do this or is the coding below sound?
db.task_Commt.Where(u => u.GlobalId == companyId
&& u.ItemId == itemId).ToList().ForEach(db.task_task_Commt.DeleteObject);