I am trying to create a .NET core application that connects to multiple databases.
I need 2 different context, one of them will connect to a database and the other context has to connect to multiple databases (with the same schemma).
I've created both context but i have problems chaning the connection string for the second context.
Ex: I have an api mehtod that recieve the ID of a product and i have to search that product with the first context and then, depending on the token, update that product on a specific database on the second context