I have entity framework code as shown below.I am getting following error in where condition.
Cannot convert lambda expression to type \'bool\' because
The => syntax is used in the method chain notation. You probably also want to use the clubName variable instead of "club1".
var query = db.Clubs.Where (p => p.ClubName == clubName);
which does the same as this (which is the correct syntax for your query):
var query = from o in db.Clubs
where o.ClubName == clubName
select o;