Is there an easy way to delete all child records for an item using Linq to sql?
Something like this will work if there is a relationship between the tables:
var parent = // ...
context.Children.DeleteAllOnSubmit(parent.Children);
context.SubmitChanges();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With