I want to wrap some queries in a SharedDbConnectionScope and execute them under a different connection string. How do I add a provider/connection string dynamically in order to do this?
Thanks
I want to wrap some queries in a SharedDbConnectionScope and execute them under a different connection string. How do I add a provider/connection string dynamically in order to do this?
Thanks
Both the
ActiveRecord\Context.tt
and theLinqTemplates\Context.tt
that you would use to generate your classes contain constructors:So you can pass your connection string to one of these constructors, like: