public bool TestConnection() { try { using (DbConnection conn = GetNewConnection()) conn.Open(); return true; } catch { return false; } }