Closed ssteiner closed 5 years ago
I will look into this. I may have missed support for dynamic OrderBy.
Any news on this? Thanks
Sorry for the late response. I'm going to add OrderBy support for DirectoryAttributes. In the mean time you can use OrderBy("sn").
Hi
I have to return results in pages but the query needs to be non typed. if I do it typed, I can work with Skip() and Page() just fine and the results returned match my expectations. But, in order for Skip to work, I also need to add an order statement. And I'm having trouble figuring out how to write that Order statement in case of a non typed query.
Here's my query:
This would be a non working attempt to order the results by sn .. I've also tried u=> u.DistinguishedName which doesn't appear to be working (gets me a "{"DistinguishedName was not found as a mapped property on LinqToLdap.Collections.DirectoryAttributes"}") either and working with u.Entry also doesn't appear to get me anywhere.
What's the proper order statement so the above would start working?
Thanks Stephan