示例#1
0
 private void DoInsertUpdate(Datos.Roles dr)
 {
     using (BypassPropertyChecks)
     {
         dr.IdRol     = Id;
         dr.CodigoRol = Codigo;
         dr.NombreRol = Nombre;
     }
 }
示例#2
0
        private void Child_Fetch(Datos.Roles childData)
        {
            using (BypassPropertyChecks)
            {
                Id     = childData.IdRol;
                Codigo = childData.CodigoRol;
                Nombre = childData.NombreRol;
            }

            MarkOld();
        }
示例#3
0
        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);
            }
        }
示例#4
0
 internal static Rol GetRol(Datos.Roles childData)
 {
     return(DataPortal.FetchChild <Rol>(childData));
 }