protected override void DataPortal_Update() { if (!IsDirty) { return; } WorkReportRecord obj = Session().Get <WorkReportRecord>(Oid); obj.CopyValues(Base.Record); Session().Update(obj); MarkOld(); }
internal void Update(WorkReports parent) { // if we're not dirty then don't update the database if (!this.IsDirty) { return; } ValidationRules.CheckRules(); if (!IsValid) { throw new iQValidationException(moleQule.Resources.Messages.GENERIC_VALIDATION_ERROR); } SessionCode = parent.SessionCode; WorkReportRecord obj = Session().Get <WorkReportRecord>(Oid); obj.CopyValues(Base.Record); Session().Update(obj); MarkOld(); }