I have a table that has 4 rows whit this role:
Models.tblAssessmentRequest p = new Models.tblAssessmentRequest();
p = biz.Entities.Where(a => a.SuggestionId == SuggestionId).LastOrDefault();
but when I execute my program, I got this error:
LINQ to Entities does not recognize the method 'Models.tblAssessmentRequest LastOrDefaulttblAssessmentRequest' method, and this method cannot be translated into a store expression.
Anyone help me?