EF CF:删除失败的简单映射。 [英] EF CF: Simple mapping with delete failed.

查看:86
本文介绍了EF CF:删除失败的简单映射。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是删除相关实体的失败。这是错误:*来自'Order_Lines'AssociationSet的关系处于'已删除'状态。给定多重约束,相应的'Order_Lines_Target'也必须处于'已删除'状态。*。
This is the fail to delete related entities. And this is the error: *A relationship from the 'Order_Lines' AssociationSet is in the 'Deleted' state. Given multiplicity constraints, a corresponding 'Order_Lines_Target' must also in the 'Deleted' state.*.

推荐答案

我发现了这个:  http://blogs.msdn.com/b/dsimmons/archive /2010/01/31/deleting-foreign-key-relationships-in-ef4.aspx  这是当前的
行为吗?是?我想这是一个笑话:)
I found this: http://blogs.msdn.com/b/dsimmons/archive/2010/01/31/deleting-foreign-key-relationships-in-ef4.aspx Is this the current behavior? Yes? I guess this is a joke :)


这篇关于EF CF:删除失败的简单映射。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆