Hi, i'd like to ask if DataObjects.net allows for constructing query trees (AST) dynamically, by combining basic expressions/predicates programmatically? And what about textual query language - is any supported? If so, can it be parsed into query AST? I'm asking because i'll need to construct queries in runtime, or modify existing query trees to enforce security rules, also in runtime. Thanks

asked Mar 19 '14 at 16:37

lafar6502's gravatar image

lafar6502
5112

edited Mar 19 '14 at 16:39


One Answer:

Hello,

DataObjects.Net uses standard .NET API called expression trees (System.Linq.Expressions). You can construct trees in the code or use so called Dynamic LINQ which is a library for creating trees from textual representation. Any third-party library that is able to construct expression trees will likely work as well.

answered Mar 20 '14 at 04:56

Denis%20Krjuchkov's gravatar image

Denis Krjuchkov
179325

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA