Esempio n. 1
0
        internal void Insert(Agente parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            OidAgente = parent.Oid;

            try
            {
                SessionCode = parent.SessionCode;
                parent.Session().Save(Base.Record);
            }
            catch (Exception ex)
            {
                throw new iQPersistentException(iQExceptionHandler.GetAllMessages(ex));
            }

            MarkOld();
        }