Example #1
0
        /// <summary>
        /// Creates a new JOIN of the specified type with no comparison
        /// </summary>
        /// <param name="jointo"></param>
        /// <param name="joinType"></param>
        /// <returns></returns>
        public static DBJoin Join(DBClause jointo, JoinType joinType)
        {
            DBJoinRef join = new DBJoinRef();

            join.JoinedTo = jointo;
            join.JoinType = joinType;
            return(join);
        }
Example #2
0
        /// <summary>
        /// Creates a new join of the specified type and the ON set to the specified comparison
        /// </summary>
        /// <param name="jointo"></param>
        /// <param name="joinType"></param>
        /// <param name="comp"></param>
        /// <returns></returns>
        public static DBJoin Join(DBClause jointo, JoinType joinType, DBComparison comp)
        {
            DBJoinRef jref = new DBJoinRef();

            jref.JoinType   = joinType;
            jref.JoinedTo   = jointo;
            jref.Comparison = comp;

            return(jref);
        }