开发者

Entity Framework namespaces - context namespace

开发者 https://www.devze.com 2023-03-01 13:39 出处:网络
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.

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

精彩评论

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