Beispiel #1
0
        public virtual void CopyValues(EntityTypeRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid            = source.Oid;
            _valor         = source.Valor;
            _user_created  = source.UserCreated;
            _common_schema = source.CommonSchema;
        }
Beispiel #2
0
        internal void Update(TipoEntidades parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }


            try
            {
                SessionCode = parent.SessionCode;
                EntityTypeRecord obj = Session().Get <EntityTypeRecord>(Oid);
                obj.CopyValues(Base.Record);
                Session().Update(obj);
            }
            catch (Exception ex)
            {
                iQExceptionHandler.TreatException(ex);
            }

            MarkOld();
        }