I have a Customers table, a Sports table, and Customers_Sports join table. The last table tells me which customers play what sports, ie contains foreign keys to the other two tables.
Foreign key constraints are enforced, and foreign keys cannot be null.
Using LINQ, is there a simple way to delete a customer and at the same time delete all the records in the join table that reference the customer?
I can do it the hard way, ie first delete relevant records from the join table, then delete the customer's record from Customers.