Delete Object and its related entities

后端 未结 4 1915
情歌与酒
情歌与酒 2020-12-20 02:27

Does anyone know how to delete an object and all of it\'s related entities.

For example I have tables, Products, Category, ProductCategory and productDetails, the pr

4条回答
  •  借酒劲吻你
    2020-12-20 02:53

    Also, If you look at your edmx file in visual studio, you can select the "association" and select "End1 OnDelete" property and set to "Cascade".

提交回复
热议问题