标签: c# lambda
如何编写lambda表达式以获取所有具有description =“PickMe”或“TakeMe”的详细行的订单
答案 0 :(得分:6)
尝试:
context.Orders.Where(o => o.OrderDetails.Any(d => d.Description == "PickMe" || d.Description == "TakeMe"));