I may be completely blind and stupid, but I cannot find any method created by the ADO.NET Entity Data Model that somehow removes rows from my table. I did not want to create a custom query. So how do I do this? Please, help.
I do not have the DeleteOnSubmit method ... I donβt know why. This is the code I wanted to use.
var deleteOrderDetails = from details in db.OrderDetails where details.OrderID == 11000 select details; foreach (var detail in deleteOrderDetails) { db.OrderDetails.DeleteOnSubmit(detail); } db.SubmitChanges();
Trimack
source share