Example #1
0
 private void DoInsertUpdate(Datos.RecursoAplicacion dr)
 {
     using (BypassPropertyChecks)
     {
         dr.IdRecursoAplicacion = ID;
         dr.IdRecurso           = IdRecurso;
         dr.IdAplicacion        = IdAplicacion;
         dr.Conceder            = Conceder;
     }
 }
Example #2
0
        private void Child_Insert(Aplicacion parent)
        {
            using (var ctx = DbContextManager <SeguridadEntities> .GetManager(BaseDatos.ConexionBD))
            {
                var detalle = new Datos.RecursoAplicacion();
                IdAplicacion = parent.ID;
                DoInsertUpdate(detalle);

                ctx.DbContext.RecursoAplicacion.Add(detalle);

                FieldManager.UpdateChildren(this);
            }
        }