public virtual void CopyValues(DocumentTypeRecord source) { if (source == null) { return; } Oid = source.Oid; _valor = source.Valor; _user_created = source.UserCreated; }
internal void Update(Tipodocumentos parent) { // if we're not dirty then don't update the database if (!this.IsDirty) { return; } try { SessionCode = parent.SessionCode; DocumentTypeRecord obj = Session().Get <DocumentTypeRecord>(Oid); obj.CopyValues(Base.Record); Session().Update(obj); MarkOld(); } catch (Exception ex) { iQExceptionHandler.TreatException(ex); } }