Entity Framework 4 ste delete foreign key relationship

Posted by user169867 on Stack Overflow See other posts from Stack Overflow or by user169867
Published on 2010-03-16T14:30:19Z Indexed on 2010/04/06 22:23 UTC
Read the original article Hit count: 1104

I'm using EF4 and STE w/ Silverlight.

I'm having trouble deleting child records from my primary entity. For some reason I can remove child entities if their foreign key to my primary entity is part of their Primary Key.

But if it's not, they don't get removed.

I believe these posts explains it: http://mocella.blogspot.com/2010/01/entity-framework-v4-object-graph.html

http://blogs.msdn.com/dsimmons/archive/2010/01/31/deleting-foreign-key-relationships-in-ef4.aspx

My question is how how do I remove a child record who's foreign key is not part of its primary key in Silverlight where I don't have access to a DeleteObject() function?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about entity-framework-4