System.Linq.Dynamic

Posted zwei1121

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了System.Linq.Dynamic相关的知识,希望对你有一定的参考价值。

Try using simply "CityName.Contains(@1)" this will convert to the proper lambda since its a method invocation on an accessible type.

something like:

var query =
db.Customers.
Where("CityName.Contains(@0) or CityName.Contains(@1)", "London", "USA")


http://www.albahari.com/nutshell/predicatebuilder.aspx




以上是关于System.Linq.Dynamic的主要内容,如果未能解决你的问题,请参考以下文章