I have Table A and Table B on SQL Server.
Table B has an foreign key to Table A.
I want to cascade delete Table B itens when I delete a Table A item.
How to set this on SQL Server and on Entity Data Model?
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.
On the SQL server, set the
Delete RuleinINSERT and UPDATE specificationon the relationship property toCascade.