-
Notifications
You must be signed in to change notification settings - Fork 167
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
LinqKit fails with Entity Framework Core 5 #116
Comments
@btihanyi |
@StefH |
I've checked it and now it works fine. But I still wonder why don't you just use the official |
@btihanyi Actually I don't know why a custom ExpressionVisitor is used in LinqKit, but for now I keep it like it is. Other question: |
From the comment of the class, the custom On the second question: I think while you use a preview (alpha, beta, etc.) package, yours should be too. But you don't have to follow their release numbers (apart from the major part), so 5.0.0-preview1, 5.0.0-preview2 is the proper way to go I believe. Then, when it's officially released, try to target that 5.0.0 version as long as possible. |
LinqKit's query expansion functionality does not work with Entity Framework Core 5, well, since the 5.0.0-preview.2.20159.4 to be exact. It throws an exception: 'Unhandled expression type: 'Extension''
I don't know what could be that Extension expression, but it's been there since .NET Framework 4.0.
Of course, you could handle it in your code, but I suggest you to use the official ExpressionVisitor class, at least for the newer target frameworks, so it would be future-proof.
The text was updated successfully, but these errors were encountered: