Closed Andrey-2021 closed 8 months ago
Hello @Andrey-2021,
I did add your test project in this PR (https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/780) and when running on a InMemory database, it works fine. Can you use this example and connect it to your real database?
Hi! I connected real db, please reload progect from https://github.com/Andrey-2021/RadzenDataGrid
Yes, OrderBy work when I use List in memory instead of a real database. But I have error with real MsSQL DataBase
@Andrey-2021 I did use your connection-string in my PR, and it still works fine?
an Exception occurs when it is necessary to sort, try to sort the columns: Index or Code or Name
Please use my solution in the PR:
Thank you very much!!!!!!!!!!!!!! Ity's work with the setup using OwnsOne()
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: