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