开发者

How to execute a dynamic LINQ expression

开发者 https://www.devze.com 2023-01-31 16:15 出处:网络
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

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

精彩评论

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