Пример #1
0
        /// <summary>
        /// Insert a from clause item after this one and before the next
        /// </summary>
        /// <param name="nextJoin"></param>
        /// <returns></returns>
        public SQFromItem Insert(SQJoin join)
        {
            if (Join != null)
            {
                join.Join = Join;
            }
            Join = join;

            return(this);
        }
Пример #2
0
        /// <summary>
        /// Add a from clause item to the end of the join chain
        /// </summary>
        /// <param name="nextJoin"></param>
        /// <returns></returns>
        public SQFromItem Append(SQJoin nextJoin)
        {
            if (Join == null)
            {
                Join = nextJoin;
            }
            else
            {
                Join.Append(nextJoin);
            }

            return(this);
        }