We're using EFCore for the repository and using some navigation properties for listing and sorting, and while the display works really well, we're having issues with the sorting.
For example:
class Address
{
Country Country {get; set;}
}
class Country
{
string Name {get;set;}
}
and the listing is correct and populates, but when we try to sort against the field, we get this for the sorting expression, which is not correct:
Param_0 => Convert(Param_0.CountryName, Object)
We haven't tested filtering, but it seems reasonable for the same issue to be present.
Is there something we are supposed to be doing for this, or are we able to get the underlying request/context to extract the sorting ourselves?
We also tend to use nested sorting, for example, sorting by country and then by county when the user sorts by country. Is this possible to configure, or, as above, can we get the sort field from Konstrukt so that we can build this ourselves.
Using EF navigation properties for list view
Hello,
We're using EFCore for the repository and using some navigation properties for listing and sorting, and while the display works really well, we're having issues with the sorting.
For example:
We can use this:
and the listing is correct and populates, but when we try to sort against the field, we get this for the sorting expression, which is not correct:
We haven't tested filtering, but it seems reasonable for the same issue to be present.
Is there something we are supposed to be doing for this, or are we able to get the underlying request/context to extract the sorting ourselves?
We also tend to use nested sorting, for example, sorting by country and then by county when the user sorts by country. Is this possible to configure, or, as above, can we get the sort field from Konstrukt so that we can build this ourselves.
Thanks,
Simon
is working on a reply...