public void Eliminar(EDetalleCaracteristica d) { try { using (this.dt = new DatoSistemasDataContext()) { this.dt.sp_dcar_delete(d.Dcar_codigo, d.Car_tipo); } } catch (System.Data.SqlClient.SqlException ex) { Datos.Excepciones.Gestionar(ex, "DCaracteristica"); throw new Exception(Datos.Excepciones.MensajePersonalizado); } catch (Exception ex) { Datos.Excepciones.Gestionar(ex); throw new Exception(Datos.Excepciones.MensajePersonalizado); } }
/// <summary> /// Registro de caracteristica /// </summary> /// <param name="d"></param> /// <returns>codigo de Registro</returns> public int Insertar(EDetalleCaracteristica d) { try { using (this.dt = new DatoSistemasDataContext()) { return(this.dt.sp_dcar_insert(d.Dcar_codigo, d.Car_tipo, d.Car_valor)); } } catch (System.Data.SqlClient.SqlException ex) { Datos.Excepciones.Gestionar(ex, "DCaracteristica"); throw new Exception(Datos.Excepciones.MensajePersonalizado); } catch (Exception ex) { Datos.Excepciones.Gestionar(ex); throw new Exception(Datos.Excepciones.MensajePersonalizado); } }