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?
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?
On the SQL server, set the Delete Rule
in INSERT and UPDATE specification
on the relationship property to Cascade
.