public virtual void CopyValues(AgentDocumentRecord source) { if (source == null) { return; } Oid = source.Oid; _oid_agente = source.OidAgente; _oid_documento = source.OidDocumento; }
internal void Update(Agente parent) { // if we're not dirty then don't update the database if (!this.IsDirty) { return; } OidAgente = parent.Oid; try { SessionCode = parent.SessionCode; AgentDocumentRecord obj = Session().Get <AgentDocumentRecord>(Oid); obj.CopyValues(Base.Record); Session().Update(obj); } catch (Exception ex) { throw new iQPersistentException(iQExceptionHandler.GetAllMessages(ex)); } MarkOld(); }