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

后端 未结 15 2212
再見小時候
再見小時候 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:55

    I stumbled upon this and found a different fix. I was using var query = context.Contacts.Where(c => c.FullNameReverse == "TingTong"); and getting the mentioned error. The mistake was I was using the method FullNameReverse() as property FullNameReverse. Missed the ()!!!

提交回复
热议问题