多条件Expression<Func<T, bool>>

EF中需要传入多条件的Expression<Func<T, bool>>时可以这样用:

(u) => (u.Receiver == name && u.isRead == true)

 

posted @ 2015-03-08 19:29  sphinxhero  阅读(407)  评论(0编辑  收藏  举报