I have an asp.net web application in visual studio 2010. I am connected to an sql server using linq-to-entites objects and need to find out how to turn off cascading-deletes when i delete an object via a grid-view. Anybody know?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Go to the model browser. Then click on the association and view the properties. There is a property for On Delete that you can set to either Cascade or none. Select none.