I have something like a Customer object with up to 50000 order in an ICollection<Orders>
.
Assume the Custome being in the local cache, the orders not. How can i delete the Cutomer and all of its related orders without loading all of the Customer orders into the cache and marking them with setDeleted()
?
What is the best practice here. I assume extending the public SaveResult SaveChanges(JObject saveBundle)
method is the best way. Any other possibilities here on the client side like a flag delete_all_navigation_too()
?
Thanks