Created
April 29, 2009 14:00
-
-
Save sitwalkstand/103788 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region GetConnectionString | |
private static string GetConnectionString() | |
{ | |
string oraConnStr = ConfigurationManager.AppSettings.Get("OracleConnectionString"); | |
if (string.IsNullOrEmpty(oraConnStr)) | |
{ | |
throw new Exception("Configuration Setting Error: OracleConnectionString must be declared."); | |
} | |
return oraConnStr; | |
} | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment