The above error mentioned:-
Quote:
Cannot convert lambda expression to type 'string' because it is not a delegate type
This error comes sometimes when you have missed the namespace for linq
using System.Linq;
or
using System.Data.Entity;
Mehdi and Griff are absolutely correct that you have missed out double equals, please just keep in mind and check for the namespaces also. Sometimes the double equals also throws the first error you have mentioned because of the namespaces.
Hope this helps anyway.
Thanks.
:)