Delete record in Linq to Sql
- by Anders Svensson
I have Linq2Sql classes User, Page, and UserPage (from a junction table), i.e. a many-to-many relationship. I'm using a gridview to show all Users, with a dropdownlist in each row to show the Pages visited by each user.
Now I want to be able to delete records through the gridview, so I have added a delete button in the gridview by setting "Enable…