Skip to content
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

Added IOrderedQueryable Interface on MapsterQueryable #431

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

noelmugnier
Copy link
Contributor

@noelmugnier noelmugnier commented Apr 28, 2022

I'm currently using Mapster as mapping tool for OData in order to optimize my sql queries with entity framework and avoid exposing the DAL :)

But when I'm using new Mapper().From(IQueryable query).ProjectTo().OrderBy(e => e.Id); I can't OrderBy the result of the projection, it says can't cast MapsterQueryable to IOrderedQueryable.

So I've added the interface and one unit test to ensure it's possible now.
Regards.

…rderBy Projection<> Result using MapperInstance.From()
@andrerav andrerav merged commit 86b84cf into MapsterMapper:master Jun 27, 2022
@andrerav
Copy link
Contributor

Thank you @noelmugnier!

@andrerav
Copy link
Contributor

This is now available in the latest pre-release package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants