Skip to content

Instantly share code, notes, and snippets.

@sitwalkstand
Created April 29, 2009 14:00
Show Gist options
  • Save sitwalkstand/103788 to your computer and use it in GitHub Desktop.
Save sitwalkstand/103788 to your computer and use it in GitHub Desktop.
#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