Disable Foreign Key Exposure in Entity Framework?

Posted by davemackey on Stack Overflow See other posts from Stack Overflow or by davemackey
Published on 2010-06-09T13:59:04Z Indexed on 2010/06/09 14:02 UTC
Read the original article Hit count: 166

When I originally created a Dynamic Data project I told it to expose the foreign keys, but now I can't make mappings between two entities b/c of the foreign keys. When I click on mapping details while focused on my association I receive the message:

Mappings are not allow for an association over exposed foreign keys.

So I'd like to disable the exposure of the foreign keys but am unsure how to do this without creating a new Entity Model from scratch. I'm not far along - so that wouldn't be hard, but I imagine there must be a programmatic switch for this?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about dynamic-data