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

后端 未结 15 2278
再見小時候
再見小時候 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条回答
  •  萌比男神i
    2020-11-30 09:55

    I was having a similar problem binding columns to a Telerik MVC Grid. I had an Id property on my ViewModel class. (Inspired by Chris's answer above) I renamed it to XxxId and the problem went away. I seem to recall something about MVC doing something special for Id properties.

提交回复
热议问题