-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
'or' pattern matching issue #237
Comments
I would not be able to untangle the results. How I suppose to distinguish between genuine |
The computed property doesn't use
If I use that property to filter an in-memory list, the Linq Where() method works fine and returns the correct result (only entities with the Status values
But when I use the Decompile() method to query the DB, the result also includes entities with the Status value
|
When compiler compiles What I’m saying is that for me it would not be possible to know how the |
Ok, thanks for the clarification. Then we can consider that this is a limitation of the library, right? |
With .NET 8, enum computed properties that use 'or' pattern matching returns different results that using the '||' operator.
It seems to be related with the way .NET 8 optimize the code using the 'less than' operator and the int value of the enum.
I have attached a small sample that reproduces the problem. Using the 'or' pattern matching, the query returns more entities than using the '||' operator.
EnumPatternMatching.zip
The text was updated successfully, but these errors were encountered: