Is there any ability to parse a small expression and find out is it correct?



1 comment

  • Official comment
    Sergey Smagin (Product manager)

    Hello, Valentina.

    Yes, this is possible.

    Use the QueryBuilder.SQLContext.ParseExpression or the QueryBuilder.SQLContext.ParseLogicalExpression methods to do so. They throw SQLParsingException on parsing an incorrect statement.

    Working with the ASP.NET Edition on the client side you can use the QB.Web.Application.validateExpression and QB.Web.Application.validateCondition functions. They accept an expression and a callback function as parameters. The callback function gets the bool valid and string error parameters.

    Comment actions Permalink

Please sign in to leave a comment.