No se puede crear un valor constante, solo tipos primitivos
Dos consultas simples - la excepción ocurre en:
matchings.Any(u => product.ProductId == u.ProductId)
¿Qué está mal? Si escribotrue
en cambio todo es bueno.
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();