-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Filter by enum column with parameters throws exception #258
Comments
What framework do you use? |
Hi @StefH
|
And does this work when you use a normal linq? Can you provide a full example project? |
OK. I see. I will work probably if you use: this.Query<DbMenu>().Where("Module=@0", (in?) 4) However, for usability it would be better if this is built-in the code. |
It would be a lot better. Because I don't know if enum is |
Problem is found and fixed. Can you try a preview version: For using MyGet preview versions, see : https://github.com/StefH/System.Linq.Dynamic.Core/wiki/MyGet-preview-versions |
It works. Thank you. |
Official NuGet (1.0.12) is uploaded and will be visible in some time... |
Hey @StefH.
It doesn't work. It can convert it into Expression, when enum is inside any class as property. But it doesn't work for Enum type itself. |
I am using version:
I am trying to filter by enum and pass value as parameter, but I get exception
This works:
and this doesn't:
Entity source:
Callstack:
The text was updated successfully, but these errors were encountered: