Database connection string

Topics: Customizing Orchard
Jul 10, 2011 at 4:31 PM

Hi,

 

From where can i find database connection string

 

lakmal

Jul 11, 2011 at 3:50 AM
I am not sure if it is available via an api but it is stored in /App_Data/Sites/{Application Name}/Settings.txt
The Line is prefixed with DataConnectionString:
From: [email removed]
Sent: Monday, July 11, 2011 2:31 AM
To: [email removed]
Subject: Database connection string [orchard:264591]

From: galgodage

Hi,

From where can i find database connection string

lakmal

Sep 26, 2011 at 10:00 AM

just add  IShellSettingsManager to your constructor and than call LoadSettings()

_settingsManager.LoadSettings().First().DataConnectionString;