I am trying to change the Namespace used by Entity Framework Generator of classes.
When I click the designer of my Entity, Model.edmx, I can see somewhere where I ca
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.
My issue was that I had to rename a solution and the default namespace and assembly name hadn't gotten changed to the new name. After making sure your namespace is correct in the EDMX designer, right click on your project to open properties and update the default namespace and assembly name and we were good.
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.
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.