0
Good evening, I’m developing a system in MVC 5 and c#, I have two SQLSERVER database, one for Development and one for Production.
I ask to know how to configure Webconfig to accept these two connections and if and need to build some class that does this.
Clarifying:
When we develop the application we have a development web server that communicates with a development sqlserver database server, once this application is ready, it goes up to the production web server which should communicate with the Production SQLSERVER server.
What I need to do and configure webconfig for it to recognize which bank it should communicate in without having to change it manually as I have been doing.
Do you want to access the 2 connections at the same time?
– BrunoAgenor
Edit your question with details of what you’re trying to do, making it less broad and bring in the source code showing what you’re trying to do.
– Samuel Fontebasso
If one is development and another is production, you should not access them at the same time. Just change on the web.config when you need to switch between them.
– Rovann Linhalis