-
-
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
C# Entity Framework Core - OrderBy and Where don't work with [ComplexType]
#778
Comments
[ComplexType]
[ComplexType]
Hello @Andrey-2021, I did add your test project in this PR (#780) and when running on a InMemory database, it works fine. Can you use this example and connect it to your real database? |
Hi! Yes, OrderBy work when I use List in memory instead of a real database. |
@Andrey-2021 |
Thank you very much!!!!!!!!!!!!!! |
project: https://github.com/Andrey-2021/RadzenDataGrid
use MsSQL + Entity Framework Core
1. Description
When I don't use OrderBy the program is work.
But
When I use OrderBy i Have Exception in method
protected async Task OnLoadDataAsync(LoadDataArgs args)
OrderBy and Where don't work with
[ComplexType]
first class:
second class:
2. Exception
Exception: Comparing complex types to null is not supported.
I see
in line
query = query.OrderBy(args.OrderBy);
args.OrderBy = 'np(ServiceBase.Index) desc'
3. Fiddle or Project
https://github.com/Andrey-2021/RadzenDataGrid
To Reproduce
Steps to reproduce the behavior:
we get an error: Exception: Comparing complex types to null is not supported.
The text was updated successfully, but these errors were encountered: