Don’t you hate it when you start working with the LINQ to SQL in Visual Studio, everytime you change something your *.dbml, the *.designer.cs file changes its namespace to original projectname depended namespace? And you can’t find your objects or tables in intellisense?
Well, solution is simple.
Open up your *.dbml and look up the properties.
you will see the “Context Namespace” and “Entity Namespace” fields as empty. Set it to your desired namespace and that should keep them in place.
Lauri Larjo said
Thanks for the tip! Solved my problem.
farlin said
my pleasure!