开发者

Is it possible to NOT map an assocation in ADO.NET entity framework

I'm working on a project that uses ADO.NET entity framework as the ORM framework for getting data in and out the database. This all works great, b开发者_运维知识库ut there's one association that I don't want to map. At least I don't want the developers to navigate from Product to OrderItem using the association between them.

Has anyone tried this scenario before I knows whether this will work and how I can model this into my domain-model?


In EF 1 you can remove the relationship from the client schema in the EDMX and it will work fine, but I think it confuses the GUI designer. I believe this is fixed in the EF 4 designer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜