I am using Visual Studio 2010, and I have a LINQ to SQL DBML file that my colleagues and I use for this project.
We have a connection string in the web.config file that uses DBML. However, when I drag a new table from my "Server Explorer" into the DBML file ... I see a dialog box that requires one of these two options:
- Allow visual studio to change the connection string to match the one in my solution explorer.
- Cancel the operation (this means that I am not getting the table).
It’s not very difficult for me to discuss why the PM / devs who created this tool did not allow the third option - "Create an object anyway - don’t worry, I'm a developer!"
What I think would be a good solution if I can create a connection in Server Explorer - WITHOUT MASTER. If I can just insert a connection string, that would be awesome! Because then the DBML developer will not worry about me: O)
If someone knows the answer to this question or how to do it, please let us know!
visual-studio-2010 linq-to-sql
Timothy Khouri
source share