Beispiel #1
0
 public void Update(int idCriterio, String criterio, String tipoOpcion)
 {
     try
     {
         String           query = String.Format("UPDATE xCNBVCriterios SET Criterio = '{0}', TipoOpcion = '{2}' WHERE IDCriterio = {1}", criterio, idCriterio, tipoOpcion);
         DataBaseSettings db    = new DataBaseSettings();
         db.ExecuteQuery(query);
     } catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 public void Insert()
 {
     try
     {
         String           query = String.Format("INSERT INTO xCNBVCriterios (Criterio, TipoOpcion) VALUES ('{0}', '{1}')", criterio, tipoOpcion);
         DataBaseSettings db    = new DataBaseSettings();
         db.ExecuteQuery(query);
     } catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
 public void Delete(int idCriterio)
 {
     try
     {
         String           query = String.Format("DELETE xCNBVCriterios WHERE IDCriterio = {0}", idCriterio);
         DataBaseSettings db    = new DataBaseSettings();
         db.ExecuteQuery(query);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }