开发者

Entity Framework namespaces - context namespace

I have an edmx file and I loaded 5 tables.

I would like to change the namespace of 2 of the 5 tables so the context object will be in开发者_如何学运维 another namespace.

Is there any way to do it?


Not possible through the designer [as far as I know].

Options:

  • Tweak the code generation yourself (more info here)
  • Use the new EF code-first (EF 4.1) approach where this should be entirely possible out of the box


To achieve what you want you need two separate EDMX files.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜