So at the root of my DB, I have a table “Customer.” Customer has foreign keys going to about 6-7 other tables such as Receipts, Addresses, Documents etc. If I were to delete a customer using SubmitChanges(), would that seek out all those records with the foreign key association and delete them too, or would I need to do like 6 queries?
Share
This will only happen if you have set up your database tables to do this with cascading deletions (i.e.
on delete cascade).For more information please see Insert, Update, and Delete Operations (LINQ to SQL):