コード例 #1
0
        //
        // static factory methods
        //

        #region internal static DBSubQuery SubSelect(DBQuery inner)

        /// <summary>
        /// Defines a new SubSelect with an inner query
        /// </summary>
        /// <param name="inner"></param>
        /// <returns></returns>
        internal static DBSubQuery SubSelect(DBQuery inner)
        {
            DBSubQueryRef sub = new DBSubQueryRef();

            sub.InnerQuery     = inner;
            inner.IsInnerQuery = true;
            return(sub);
        }
コード例 #2
0
        /// <summary>
        /// Defines a new empty sub select
        /// </summary>
        /// <returns></returns>
        internal static DBSubQuery SubSelect()
        {
            DBSubQueryRef subref = new DBSubQueryRef();

            return(subref);
        }