Nie można utworzyć stałej wartości - tylko typy pierwotne
Dwa proste zapytania - wyjątek występuje w:
matchings.Any(u => product.ProductId == u.ProductId)
Co jest nie tak? Jeśli piszętrue
zamiast tego wszystko jest dobre.
var matchings = (from match in db.matchings
where match.StoreId == StoreId
select match).ToList();
var names = (from product in db.Products
where matchings.Any(u => product.ProductId == u.ProductId)
select product).ToList();