private void DoInsertUpdate(Datos.Roles dr) { using (BypassPropertyChecks) { dr.IdRol = Id; dr.CodigoRol = Codigo; dr.NombreRol = Nombre; } }
private void Child_Fetch(Datos.Roles childData) { using (BypassPropertyChecks) { Id = childData.IdRol; Codigo = childData.CodigoRol; Nombre = childData.NombreRol; } MarkOld(); }
private void Child_Insert(Aplicacion parent) { using (var ctx = DbContextManager <SeguridadEntities> .GetManager(BaseDatos.ConexionBD)) { var detalle = new Datos.Roles(); detalle.IdAplicacion = parent.ID; DoInsertUpdate(detalle); ctx.DbContext.Roles.Add(detalle); FieldManager.UpdateChildren(this); } }
internal static Rol GetRol(Datos.Roles childData) { return(DataPortal.FetchChild <Rol>(childData)); }