Strange error “argument type ‘lambda expression’ is not assignable to parameter type ‘string’”
How to fix the C# error 'lambda expression is not assignable to parameter type string' when using Entity Framework and LINQ by adding the missing System.Linq using directive.
During playing with EF and LINQ I run in this UI-error:
argument type ‘lambda expression’ is not assignable to parameter type ‘string’
The Compiler themselves states:
Cannot convert lambda expression to type ‘string’ because it is not a delegate type.
After some googling I found, that a missing using directive is the problem.
Inserting System.Linq fixed it
