1
我已經在List<Guid> cartList
中選擇了Product.Id
(guid)。我試圖通過實體框架獲得所有匹配的產品和一個lambda表達式。EF lambda:如何獲取與列表中的任何id匹配的所有數據
List<Product> getProducts = db.Products.Where(x=> x.Id == /*that contains any ids in cartList*/)
任何想法如何使這項工作?
'cartList.Contains(x.Id)' –