/// <summary> /// Permite leer un detalle /// </summary> /// <returns>Devuelve un detalle en especifico</returns> public Detalle leer() { Detalle temp = null; var db = new ModeloContainer(); try { temp = (from u in db.DetalleSet where u.IdDetalle == det.IdDetalle select u).FirstOrDefault(); } catch (Exception) { throw; } finally { db.Database.Connection.Close(); } return(temp); }
/// <summary> /// Representa el conductor de la clase _Detalle /// </summary> /// <param name="det">Representa un objeto tipo detalle</param> public _Detalle(Detalle det) { this.det = det; }