Как решить эту ошибку в C #?

Я получаю сообщение об ошибке при использовании следующего кода

var v1 = from P in db1.QuranWordsNews where P.Aye == perId select P;
var vv = v1.LastOrDefault(); // The error occurs here

Сообщение:

LINQ to Entities does not recognize the method 'TashihQuran.QuranWordsNew LastOrDefaultQuranWordsNew' method, and this method cannot be translated into a store expression.

18
задан Adi Lester 10 July 2012 в 10:15
поделиться