IQueryable<Patients> patients = db.Patients;
patients = patients.Where(x => x.Status.LastOrDefault().Status != Status.Imported);
On the 1st line I have a IQueryable data. (1,000+ data)
On the 2nd line The "Status" is a List of object. I wanted to get the last list of Status and have a condition.
But this gives me an error "{document}{Status}.LastOrDefault().Status is not supported."
Is there any workaround to implement this? I cannot perform IEnumerable because it will load too slow.
I'm using MongoDB for my database.