I have a problem. I create a Data Entity Model in Visual Studio. And in Linq;
Guid RtuDataId = db.RtuData.Where(x => x.CommunicationUnit.Id == new Guid(ID))
.OrderByDescending(x => x.ReadOn)
.LastOrDefault().Id;
I get error ;
does not recognize the method ... method, and this method cannot be translated into a store expression.
I searched in Google but I don't understand this error.