예제 #1
0
        /// <summary>
        /// Creates an unary NOT comparison
        /// </summary>
        /// <param name="clause"></param>
        /// <returns></returns>
        public static DBComparison Not(DBClause clause)
        {
            DBUnaryComparisonRef un = new DBUnaryComparisonRef();

            un.UnaryOperator = UnaryOp.Not;
            un.ToOperateOn   = clause;
            return(un);
        }
예제 #2
0
        //
        // internal parameterless factory methods
        //

        #region internal static DBComparison Not()

        internal static DBComparison Not()
        {
            DBUnaryComparisonRef un = new DBUnaryComparisonRef();

            un.UnaryOperator = UnaryOp.Not;
            un.ToOperateOn   = null;
            return(un);
        }
예제 #3
0
        /// <summary>
        /// Creates an EXISTS comparison
        /// </summary>
        /// <param name="clause"></param>
        /// <returns></returns>
        public static DBComparison Exists(DBClause clause)
        {
            DBUnaryComparisonRef un = new DBUnaryComparisonRef();

            un.UnaryOperator = Tech.Data.UnaryOp.Exists;
            un.ToOperateOn   = clause;

            return(un);
        }