public virtual void CopyValues(AreaRecord source) { if (source == null) { return; } Oid = source.Oid; _nombre = source.Nombre; _codigo = source.Codigo; _serial = source.Serial; _observaciones = source.Observaciones; }
protected override void DataPortal_Update() { if (IsDirty) { try { AreaRecord obj = Session().Get <AreaRecord>(Oid); obj.CopyValues(this.Base.Record); Session().Update(obj); } catch (Exception ex) { iQExceptionHandler.TreatException(ex); } } }