Testing flag routing to Testing Database


Author
Message
Charles Thomas Blankenship...
Charles Thomas Blankenship
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
Where is the best place to put a flag that switches the DataSourceKey from the actual database ("Crucible" in this case) to a testing database ("CrucibleTesting").

I tried placing it in the Constructor of the Base Business Object like so ... but it is still routing to the production database:




public BaseBusinessLayer():base()
{
   InitializeComponent();
   if (CommonCalls.AppConfig.IsTesting)
   {
      DataSourceKey = "CrucibleTesting";
   }
} 


Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search