Cannot convert lambda expression to type ‘string’ because it is not a delegate type [duplicate]

I think you are missing using System.Linq; from this system class.

and also add using System.Data.Entity; to the code

Leave a Comment