示例#1
0
        internal static QueryNode Parse(string filterValue, EdmComplexType model)
        {
            var parserImpl = new FilterExpressionParserImpl(model);
            var queryNode  = parserImpl.Parse(new Lexer(filterValue));

            return(queryNode);
        }
        internal static QueryNode Parse(string filterValue)
        {
            var parserImpl = new FilterExpressionParserImpl();
            var queryNode = parserImpl.Parse(new Lexer(filterValue));

            return queryNode;
        }
        internal static QueryNode Parse(string filterValue, EdmComplexType model)
        {
            if (model is null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            var       parserImpl = new FilterExpressionParserImpl(model);
            QueryNode queryNode  = parserImpl.ParseQueryNode(new Lexer(filterValue));

            return(queryNode);
        }