This is my first LINQ query and I have following error
Cannot implicitly convert type
‘Microsoft.LightSwitch.IDataServiceQueryable<LightSwitchApplication.LettersSentItem>‘
to ‘System.Linq.IQueryable<LightSwitchApplication.LettersSentItem>‘.
An explicit conversion exists (are you missing a cast?)
partial void PatientReminders_PreprocessQuery(ref IQueryable<LettersSentItem> query)
{
query = from Ltr in PatientsLettersSentDetails
where Ltr.ResponseTime > 28
select Ltr;
}
Point out the line maybe ?
And this error is pretty trivial, its expecting a
Microsoft.LightSwitch.IDataServiceQueryableand you are giving it aIQueryable. You need to either send an ÌDataServiceQueryable`or transform either one of the expressions to the other type.