Ejemplo n.º 1
0
        public void TrackChange()
        {
            TypeDescription typeDiscription = TypeDescriptionCache.GetTypeDiscription(base.GetType());

            if (typeDiscription.ExecuteFunc == null)
            {
                throw GetNonStandardExecption(base.GetType());
            }
            this.bakObject = typeDiscription.ExecuteFunc(13, new object[] { this }) as BaseEntity;
        }
Ejemplo n.º 2
0
        internal CPQuery GetCPQuery(int flag, params object[] parameters)
        {
            CPQuery         query;
            TypeDescription typeDiscription = TypeDescriptionCache.GetTypeDiscription(base.GetType());

            if (typeDiscription.ExecuteFunc == null)
            {
                throw GetNonStandardExecption(base.GetType());
            }
            try
            {
                query = typeDiscription.ExecuteFunc(flag, parameters) as CPQuery;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(query);
        }