Issue on Using Lambda in ASP.net MVC : I am trying to query a table like ` db.Products.Where(p => p.CategoryID == id)` at:


     public ActionResult Index(int id)
        {
            var products = db.Products.Where(p => p.CategoryID == id);
            return View("_ProductsFilterPartial");
        }

but I am getting this error on `p.CategoryID` while the `CategoryID` is a coulmn in the `product` table 

[![enter image description here][1]][1]


Can you please let me know why this is happening?

  [1]: https://i.stack.imgur.com/pUew2.png