zwei1121

博客园 首页 新随笔 联系 订阅 管理

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

db.Update(item, i => new { i.Status, i.TrackingNumber, i.UpdatedAt });

[]
_repository.Update(file, x => x.Data, x => x.Name);

 

 
 
posted on 2018-07-12 10:27  zwei  阅读(199)  评论(0编辑  收藏  举报