I have a Client entity that can have zero or many Issues. The Client entity is from an external database and the Issues are on a local database.
In my PreprocessQuery method, trying to filter our all clients who do not have an issue. I have tried both Issues and IssuesQuery.
query = query.Where(x => x.Issues.Count() > 0);
I get an error and not sure what is wrong.
An error occurred while running the screen. You can close the screen or ignore the error and continue using the screen.
Error details: Exception has been thrown by the target of an invocation.
The expression is not supported. Expression: LightSwitchApplication.Client1[].Where(x => (x.Issues.Count() > 0))
Inner exception message:
The expression is not supported. Expression: x => (x.Issues.Count() > 0)
Inner exception message:
The expression is not supported. Expression: x => (x.Issues.Count() > 0)
Inner exception message:
The expression is not supported. Expression: (x.Issues.Count() > 0)
Inner exception message:
The expression is not supported. Expression: x.Issues.Count()
Inner exception message:
The expression is not supported. Expression: x.Issues
Inner exception message:
The member 'Issues' on type 'LightSwitchApplication.Client1' is not supported.