Ejemplo n.º 1
0
 private static ConnectionState State(LogOptions logOption)
 {
     using (var con = new MySqlConnection(ConnectionString))
     {
         try
         {
             con.Open();
         }
         catch (MySqlException ex)
         {
             ErrorTrapper.Log(ex, logOption);
         }
         return(con.State);
     }
 }