Example #1
0
 public void Agregar(Conjunto_Item C)
 {
     try
     {
         comm.CommandText = "INSERT INTO persona VALUES (@idItem,@idConjunto,@cupoMax,@montoMax,@estatus)";
         comm.Parameters.AddWithValue("idItem", C.idItem);
         comm.Parameters.AddWithValue("idConjunto", C.idConjunto);
         comm.Parameters.AddWithValue("cupoMax", C.cupoMax);
         comm.Parameters.AddWithValue("montoMax", C.montoMax);
         comm.Parameters.AddWithValue("estatus", C.estatus);
         comm.CommandType = CommandType.Text;
         conn.Open();
         comm.ExecuteNonQuery();
     }
     catch (MySqlException ex)
     {
         //return new Respuesta(ex.Message, "ERROR", null);
     }
     finally
     {
         if (conn != null)
         {
             conn.Close();
         }
     }
 }
Example #2
0
 public void Modifcar(Conjunto_Item entidad)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public void Eliminar(Conjunto_Item entidad)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public Conjunto_Item Consultar(Conjunto_Item entidad)
 {
     throw new NotImplementedException();
 }