Cannot convert lambda expression to type ‘string’ because it is not a delegate type [duplicate] December 12, 2022 by Tarik I think you are missing using System.Linq; from this system class. and also add using System.Data.Entity; to the code