Is there an easy way to delete all child records for an item using Linq to sql?
+2
A:
Something like this will work if there is a relationship between the tables:
var parent = // ...
context.Children.DeleteAllOnSubmit(parent.Children);
context.SubmitChanges();
kbrimington
2010-08-09 16:53:33