コード例 #1
0
        public bool VisitExprStringLiteral(ExprStringLiteral expr, TCtx arg)
        {
            var res = this.Visit(expr, "StringLiteral", arg, out var argOut);

            this.VisitPlainProperty("Value", expr.Value, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
コード例 #2
0
ファイル: SqlBuilderBase.cs プロジェクト: 0x1000000/SqExpress
        public bool VisitExprStringLiteral(ExprStringLiteral stringLiteral, IExpr?parent)
        {
            if (stringLiteral.Value == null)
            {
                this.AppendNull();
                return(true);
            }

            this.AppendUnicodePrefix(stringLiteral.Value);
            this.Builder.Append('\'');
            if (stringLiteral.Value != null)
            {
                this.EscapeStringLiteral(this.Builder, stringLiteral.Value);
            }

            this.Builder.Append('\'');
            return(true);
        }
コード例 #3
0
 public static ExprStringLiteral WithValue(this ExprStringLiteral original, String?newValue)
 => new ExprStringLiteral(value: newValue);
コード例 #4
0
 public static ExprLike WithPattern(this ExprLike original, ExprStringLiteral newPattern)
 => new ExprLike(test: original.Test, pattern: newPattern);
コード例 #5
0
ファイル: ExprLike.cs プロジェクト: tralivali1234/SqExpress
 public ExprLike(ExprValue test, ExprStringLiteral pattern)
 {
     this.Test    = test;
     this.Pattern = pattern;
 }
コード例 #6
0
 public TRes VisitExprStringLiteral(ExprStringLiteral stringLiteral, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx)
 {
     return(ctx.ValueVisitor.VisitString(ctx.Ctx, stringLiteral.Value == null, stringLiteral.Value?.Length, false));
 }