コード例 #1
0
        public bool VisitExprIsNull(ExprIsNull expr, TCtx arg)
        {
            var res = this.Visit(expr, "IsNull", arg, out var argOut) && this.Accept("Test", expr.Test, argOut);

            this.VisitPlainProperty("Not", expr.Not, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
コード例 #2
0
ファイル: SqlBuilderBase.cs プロジェクト: 0x1000000/SqExpress
 public bool VisitExprIsNull(ExprIsNull exprIsNull, IExpr?parent)
 {
     exprIsNull.Test.Accept(this, exprIsNull);
     this.Builder.Append(" IS");
     if (exprIsNull.Not)
     {
         this.Builder.Append(" NOT");
     }
     this.Builder.Append(" NULL");
     return(true);
 }
コード例 #3
0
 public static ExprIsNull WithNot(this ExprIsNull original, Boolean newNot)
 => new ExprIsNull(test: original.Test, not: newNot);
コード例 #4
0
 public static ExprIsNull WithTest(this ExprIsNull original, ExprValue newTest)
 => new ExprIsNull(test: newTest, not: original.Not);