I have entity framework code as shown below.I am getting following error in where condition.
Cannot convert lambda expression to type \'bool\' because
Instead of where (p => p.ClubName == "club1") use:
where (p => p.ClubName == "club1")
var query = from o in db.Clubs where o.ClubName == "club1" select o;
May be you are confused with method chaining where it would be:
var query = db.Clubs.Where(p => p.ClubName == "club1");