我有以下錯誤布爾在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
的代碼是
partial void StatusCallBackRequired_PreprocessQuery(ref IQueryable<PatientsTelephoneFollowupDetail> query)
{
query = query.Where(p=> p.PatientsMasterItem.PatientsTelephoneFollowupDetail.LastOrDefault(c => c.Status == "7"));
}
我想回到去年的狀態電話的病人記錄爲7
你需要更清楚一點,你想要什麼。我不喜歡回答OP看起來沒有努力表明的問題。 – JayC 2012-04-03 02:30:10