Entity Framework - Cannot convert lambda expression to type 'string' because it is not a delegate type

后端 未结 15 2308
再見小時候
再見小時候 2020-11-30 09:18

I am using Entity Framework in my C# based code. I am running into an unexpected weirdness and am looking for suggestions.

Case 1, 2, 3, 4... Projects:
RivWorks

15条回答
  •  余生分开走
    2020-11-30 09:57

    I had this problem in a slightly different version.
    Should you call a (static) method from inside your lambda, check its return type. If the return type should be an IEnumerable (which often is true when using lambdas) but you return object, obviously you have a problem.

提交回复
热议问题