If I replace product name with a product ID the query works fine. When I choose a Product name that equals "PC" it returns nothing. I know that PC is correct because in SQL it works fine. I use other strings in the Where clause and they all work fine
var query = (from c in Consumer
join t in Transactions on c.Con_ID equals t.Con_ID
join s in Supplier on t.Supp_ID equals s.Supp_ID
join p in Product on t.Prod_ID equals p.Prod_ID
where p.Name == "PC" && c.City == "Wausau" && s.City == "Madison"
select new { SupplierName = s.Name }).Distinct();
I'm using Entity Reference Model here. Is it possible that there is an incorrect mapping for the Name field on Product or have I missed something obvious?