We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Technical details: Currently OrderBySortInfos method cannot sort by properties appeared only in derived types.
Test code example:
//Type registration in factory AbstractTypeFactory<A>.RegisterType<B>(); class A {}; class B : A { public int MyCoolProperty; public string ToString() { return MyCoolProperty.ToString(); } } var listOfA = new List<A>() { new B { MyCoolProperty = 10 }, new B { MyCoolProperty = 5} }; listOfA.AsQueryable().OrderBy("MyCoolProperty").Select(x=> Debug.WriteLine(x.ToString() + " ")); //Invalid (current) output: 10 5 //Valid output: 5 10
Need to fix OrderBySortInfos method and add unit test for this behavior.
The text was updated successfully, but these errors were encountered:
#1517 IQueryableExtensions.OrderBy doesn't work for properties of der…
ff0cfcc
…ived types: - Added support for mixed type IQueryable; - Added more tests;
@tatarincev Please check, now it works for customers and even sort Contacts properly.
Sorry, something went wrong.
tatarincev
yecli
anivirtoway
No branches or pull requests
Technical details:
Currently OrderBySortInfos method cannot sort by properties appeared only in derived types.
Test code example:
Need to fix OrderBySortInfos method and add unit test for this behavior.
The text was updated successfully, but these errors were encountered: