Пример #1
0
        public static void Validate(string sqlExpression)
        {
            SqlFilterParser sqlFilterParser = new SqlFilterParser()
            {
                scanner = new Scanner(sqlExpression)
            };

            sqlFilterParser.Parse();
        }
Пример #2
0
        public static SqlFilterParserOutput Parse(string sqlExpression)
        {
            SqlFilterParser sqlFilterParser = new SqlFilterParser()
            {
                scanner = new Scanner(sqlExpression)
            };

            sqlFilterParser.Parse();
            return(new SqlFilterParserOutput(sqlFilterParser.expressionTree, sqlFilterParser.requiredParameters));
        }