Changing Namespaces in Entity Framework Changing Namespaces in Entity Framework asp.net asp.net

Changing Namespaces in Entity Framework


rainerh is right:

I tried to set *.edmx Custom Tool Namespace property - this did not help.
I tried to set *.Context.tt property - this did not help too.
But when I set Custom Tool Namespace property of *.tt file (right-click on the file -> Properties) - namespace was set automatically for all the classes genereated before.


Open your edmx file first then press F4 or click on the properties window.Under the Schema section, there is a property called Namespace which you can modify.


In my case, I just simply created a folder within the project, moved the .edmx file to the folder I created(using the solution explorer), and everything just automatically changed namespaces.