码迷,mamicode.com
首页 > 其他好文 > 详细

System.Linq.Dynamic

时间:2018-07-12 13:02:32      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:prope   oca   shel   linq   his   using   ret   .com   where   

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

标签:prope   oca   shel   linq   his   using   ret   .com   where   

原文地址:https://www.cnblogs.com/zwei1121/p/9298171.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!