public virtual void CopyValues(MaquinariaRecord source) { if (source == null) { return; } Oid = source.Oid; _oid_expediente = source.OidExpediente; _oid_batch = source.OidBatch; _codigo = source.Codigo; _identificador = source.Identificador; _descripcion = source.Descripcion; _observaciones = source.Observaciones; }
internal void Update(Expedient parent) { // if we're not dirty then don't update the database if (!this.IsDirty) { return; } OidExpediente = parent.Oid; try { SessionCode = parent.SessionCode; MaquinariaRecord obj = Session().Get <MaquinariaRecord>(Oid); obj.CopyValues(this._base.Record); Session().Update(obj); } catch (Exception ex) { iQExceptionHandler.TreatException(ex); } MarkOld(); }