I want to delete a customer from Northwind database. I've looked example which deletes customer's order. It is easy to done.
// first remove the orderdetail rows of this order
adapter.DeleteEntityCollection(orderToRemove.OrderDetails);
// remove the order itself
toReturn = adapter.DeleteEntity(orderToRemove);
But when thinking about customer, there are many relations. Customer-CustomerOrder (1-n), CustomerOrder-OrderDetails(1-n), Customer-CustomerCustomerDemo(1-n).
Is there any class to help me or am i have to do a loop for deleting customerOrders..?
Can you send me code if you can.