Пример #1
0
 private void Child_Update(Opcion parent)
 {
     using (var ctx = DbContextManager <SeguridadEntities> .GetManager(BaseDatos.ConexionBD))
     {
         if (IsSelfDirty)
         {
             var plantilla = ctx.DbContext.Plantilla.Single(r => r.IdPlantilla == ID);
             DoInsertUpdate(plantilla);
             MarkOld();
         }
         FieldManager.UpdateChildren(this);
     }
 }
Пример #2
0
 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);
     }
 }