Ich habe folgende FehlerBool in IQueryable
Error 1 Cannot implicitly convert type 'LightSwitchApplication.PatientsTelephoneFollowupDetail' to 'bool'
Error 2 Cannot convert lambda expression to delegate type 'System.Func<LightSwitchApplication.PatientsTelephoneFollowupDetail,int,bool>' because some of the return types in the block are not implicitly convertible to the delegate return type
Der Code ist
partial void StatusCallBackRequired_PreprocessQuery(ref IQueryable<PatientsTelephoneFollowupDetail> query)
{
query = query.Where(p=> p.PatientsMasterItem.PatientsTelephoneFollowupDetail.LastOrDefault(c => c.Status == "7"));
}
Ich möchte die Patienten Aufzeichnungen mit der letzten Telefonstatus zurückzukehren als 7.
Sie müssen ein bisschen expliziter sein, was Sie wollen. Ich mag es nicht, Fragen zu beantworten, denn es sieht so aus, als ob das OP keine Anstrengungen unternommen hätte, um Klarheit zu schaffen. – JayC