We are in a mixed environment where our application is using both ADO.NET and Entity Framework.
Since both are pointing to the same physical SQL server, we would like to
Other way is to declare another connection string in the config file and use it with the following alternative constructor:
class TestEntities : DbConnect {
public TestEntities (string connectionName)
: base($"name={connectionName}")
{
}
...
Then to use this solution just:
call it like this:
var db = new TestEntities (connectionName:"other");