开发者

How to execute a dynamic LINQ expression

Is it possible to dynamically buld and execute a LINQ expression? I.e. I have a collections of items that i want to query using LINQ but i want to create the LINQ statement at runtime and execute that LINQ query on my collection like this:

var myLINQExpression = Ge开发者_如何学PythontLINQStatementFromFile(queryListFile);

var queryResult = myCollection.Where(myLINQExpression);


try dynamic linq.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜