Пример #1
0
        public virtual void CopyValues(ItemMapRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid                  = source.Oid;
            _oid_item            = source.OidItem;
            _privilege           = source.Privilege;
            _oid_associate_item  = source.OidAssociateItem;
            _associate_privilege = source.AssociatePrivilege;
        }
Пример #2
0
 protected override void DataPortal_Update()
 {
     if (IsDirty)
     {
         try
         {
             ItemMapRecord obj = Session().Get <ItemMapRecord>(Oid);
             obj.CopyValues(this._base.Record);
             Session().Update(obj);
         }
         catch (Exception ex)
         {
             throw new iQPersistentException(iQExceptionHandler.GetAllMessages(ex));
         }
     }
 }