private static SqlConnection GetConnection(DatabaseConn dbconn) { return(new SqlConnection(ConfigurationManager.ConnectionStrings[dbconn.ToString()].ConnectionString)); }