Multiple Where clauses in Lambda expressions

前端 未结 5 1418
臣服心动
臣服心动 2020-12-23 13:42

I have a simple lambda expression that goes something like this:

x=> x.Lists.Include(l => l.Title).Where(l=>l.Title != String.Empty)
5条回答
  •  被撕碎了的回忆
    2020-12-23 13:53

    x=> x.Lists.Include(l => l.Title).Where(l=>l.Title != String.Empty).Where(l => l.Internal NAme != String.Empty)
    

    or

    x=> x.Lists.Include(l => l.Title).Where(l=>l.Title != String.Empty && l.Internal NAme != String.Empty)
    

提交回复
热议问题