C
Chuck P
I want to set the connection string to use at runtime for my linqsql
datacontext.
I am using the dbml or mapper in Visual Studio.
The way I created objects was by dragging objects from the server explorer
onto the design surface.
When I dragged the first object it made a connection string in my web.config
called:
XXX with integrated security.
I want the datacontext to use connection YYY which I have in the web.config.
If I change the Connection property in the dataContext object the next time
I add something to the designer it forces me to change the connection string
back to XXX.
My connection strings in the web.config get changed by MsBuild for test and
release.
I am really worried that someone will make a change to the DataContext
designer and the connection string will get set to XXX for use in Production.
Is their a good way to work around this?
datacontext.
I am using the dbml or mapper in Visual Studio.
The way I created objects was by dragging objects from the server explorer
onto the design surface.
When I dragged the first object it made a connection string in my web.config
called:
XXX with integrated security.
I want the datacontext to use connection YYY which I have in the web.config.
If I change the Connection property in the dataContext object the next time
I add something to the designer it forces me to change the connection string
back to XXX.
My connection strings in the web.config get changed by MsBuild for test and
release.
I am really worried that someone will make a change to the DataContext
designer and the connection string will get set to XXX for use in Production.
Is their a good way to work around this?