QueryModel from expression

38 views
Skip to first unread message

Felipe

unread,
Sep 18, 2013, 8:58:48 PM9/18/13
to re-moti...@googlegroups.com
Hello, I have a need to parse a odata filter. The filter is a linq expression, how can I build the querymodel from the expression so I can kickoff the visitors? Basically, I need to Start with the Expression and compose the necessary Steps to translate it.Thanks in advance.

Michael Ketting

unread,
Sep 19, 2013, 7:31:20 AM9/19/13
to re-moti...@googlegroups.com
Hi Felipe!

The most direct way would be via QueryParser.CreateDefault().GetParsedQuery (expressionTreeRoot). It returns you the re-linq QueryModel which then accepts visitors via the Accept(...) method.

Best regards, Michael
Reply all
Reply to author
Forward
0 new messages