private void DoInsertUpdate(Datos.Plantilla detalle)
 {
     using (BypassPropertyChecks)
     {
         detalle.IdPlantilla  = ID;
         detalle.IdAplicacion = IdAplicacion;
         detalle.IdRol        = IdRol;
         detalle.Conceder     = Conceder;
     }
 }
 private void Child_Insert(Opcion parent)
 {
     using (var ctx = DbContextManager <SeguridadEntities> .GetManager(BaseDatos.ConexionBD))
     {
         var detalle = new Datos.Plantilla()
         {
             IdOpcionUI = parent.ID
         };
         DoInsertUpdate(detalle);
         ctx.DbContext.Plantilla.Add(detalle);
         MarkOld();
         FieldManager.UpdateChildren(this);
     }
 }