My project has it's connection strings in the app.config. DBContexts are instantiated with using (var myContext = new MyContext("name=MyContextConnectionString")) { ... } and the operations are done inside the using scope.
using (var myContext = new MyContext("name=MyContextConnectionString")) { ... }
using
How should I alter the config file during (test) runtime to make all of MyContext Instances use the same Effort Connection?
1.4m articles
1.4m replys
5 comments
57.0k users