-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error converting type: Bug or implementation issue - please help #158
Comments
I have also tried a simple type with the ** Simple Type **
Updated Test
|
Did you find a solution for this? I get this error when serializing an expression with an StringComparison enum in it. Edit: I found the solution. There is an AddKnownType method in every serializer. |
I did not. I reverted to getting the actual query from the provider, in my case MongoDB. Then I recreate the IQueryable from the actual query and work with the result. Look at Remote.Linq. I came close to solving the problem with that package, but still not all the permutations. |
Describe the bug
We have a generic report generator, it receives
IQueryable<T>
and OData query string. I need to change it to acceptIQueryable<T>
andExpression
.The report engine must execute
var results = records.Provider.CreateQuery<T>(expression);
Below is a simple test
To Reproduce
Expected behavior
Filter the records from 4 to 2
Screenshots
The text was updated successfully, but these errors were encountered: