I am looking for the closest idea on Microsoft plataform (IIS + .Net Framework or . Net CORE) that resembles the Java DataSource.
A little bit of context for those who don“t know DataSource. Datasource abstract the concept of Database configuration for the application. In Java (using it as example) if I have an application that demands connection with a database a good approach is to create a datasource.
The datasource defines the connection string for the underlying database, the user and password used to connect to the database and many other parameters like size of connection pool. The datasource has a name to be used by the application to look up. In Java it is named JNDI and it is a string, so the application looks for the datasource named java:jboss/datasources/ExampleDS.
This gives a big advantage on decoupling the consumer from the source. So, when I deploy my application in a test environment when the application looks after java:jboss/datasources/ExampleDS this datasource (created in a java application server) is pointing to a dev database. When I deploy the same package on QA application server the java:jboss/datasources/ExampleDS points to QA database and the same on PROD.
What should I do on IIS or any other microsoft technology/plataform/solution to have the same transparency?
