且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

指定父级/子级关系的级联删除?

更新时间:2022-01-25 22:49:04

在模型中,只需查看关联的属性即可.您可以将OnDelete设置为Cascade. XML应该如下所示:

In your model, just look at the association's properties. There is an OnDelete that you can set to Cascade. The XML should look like this:

<OnDelete Action="Cascade" />