dbml namespace keeps changing

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.


3 thoughts on “dbml namespace keeps changing

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s