Reputation: 11329
In VS2010SP1, i noticed that moving files around in a project from "Root" to a Folder ABC changes the namespace from MyNameSpace.X.Y to MyNameSpace.X.Y.ABC
Is there any option/tweak to prevent that ?
Upvotes: 4
Views: 2641
Reputation: 3693
Entity framework constructs the entity model from an T4 template (ie creates .cs file on the fly) that's why the namespace changed after move. If you move simple .cs file, it will not change namespace.
To resolve this issue right click on the folder (in solution explorer) and set property "Namespace provider" into false.
Good luck!
Upvotes: 1