-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Can't translate OrderBy on a generic method #20181
Comments
Duplicate of #20097 |
@smitpatel , thank you. |
It is available in daily builds. It will be released as part of 5.0.0 preview3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When ordering by a property defined on a interface witch restricts the generic type of the IQueryable I get the "could not be translated" error.
Steps to reproduce
With the following table:
The following sample:
I'm getting this output:
Further technical details
EF Core version: 3.1.2
Database provider: Microsoft.EntityFrameworkCore.SqlServer or Npgsql.EntityFrameworkCore.PostgreSQL both 3.1.2
Target framework: (e.g. .NET Framework 4.7.2
Operating system: Windows
IDE: Visual Studio 2019 16.4.5
The text was updated successfully, but these errors were encountered: