views:

8

answers:

0

I have a project utilizing EF4 and Self Tracking Entities (STE). In the pre-release version of STE's you could add the "Namespace" value to each EDMX different from the default Namespace of the current project. (Open EDMX, right click: Properties, Set the "Namespace" attribute.)

When you set this in the pre-release version and use the STE template to generate your entities it place the generated entities into the Namespace as specified in the EDMX.

In the release copy of VS2010 STEs it assigns the Namespace attribute to the EMDX entities (I can see this by viewing the EDMX in an XML editor). But when I generate the STE's they are assigned the default Namespace from the Project, not the EDMX. I know this value is coming from the default project Namespace because if I change it the STE is generated correctly.

This seems to be a bug in the T4 STE generation, has anyone else seen this and have a workaround other than changing my project default Namespace?