Cascade delete in entity framework ( table per type inheritance )

后端 未结 2 2039
囚心锁ツ
囚心锁ツ 2020-12-05 20:01

I have DB model with table per type inheritance. For example, entities are A, B, C, A1, A2. Base - A Derived - A1, A2. Another - B, C. So, A has 1 to 1 association to A1 and

2条回答
  •  情歌与酒
    2020-12-05 20:29

    I had the same problem and a colleague told me to iterate over the collection of items before doing Remove(o) and suddenly it all worked.

提交回复
热议问题