« Return to Thread: Class Library DB Connection String

Re: Class Library DB Connection String

by James Crossley :: Rate this Message:

Reply (Restricted by the Administrator) | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Adam

 

We store our database connection string in web.config in the bin folder.  Our server-side code reads it from there.  Can’t you do this?

 

HTH

James

 

 

From: fluorine-bounces@... [mailto:fluorine-bounces@...] On Behalf Of Adam Schaible
Sent: Tuesday, 31 May 2011 15:33
To: Fluorine Mailing List
Subject: [Fluorine] Class Library DB Connection String

 

Hi guys,

 

Been using Fluorine for quite some time now – but I’ve never really fixed this issue and it’s bugged me for a while.

 

So if we create a fluorine class library, then add a web site and build the project, our class library contains all of the database stuff.  If we have different deployment environments it can get very tedious trying to change the connection strings around.  Is there a way for me to get the web site project to use the app.config file for the dll – or is there another recommended way to handle this?

 

Thanks in advance


_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com

 « Return to Thread: Class Library DB Connection String