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

SelectPaged and Multi Mapping #283

Open
jobvitral opened this issue Jun 8, 2022 · 1 comment
Open

SelectPaged and Multi Mapping #283

jobvitral opened this issue Jun 8, 2022 · 1 comment

Comments

@jobvitral
Copy link

jobvitral commented Jun 8, 2022

Is there a way to use multi mapping with SelectPaged?

For Example:

var paged = await _context.Connection.SelectPagedAsync<User, Role, User>(expression, 1, 50, (user, role) =>
{
    user.Password = null;
    user.Role = new Role
    {
        Id = role.Id,
        Name = role.Name
    };
    return user;
});
@jobvitral jobvitral changed the title Paged Multi Mapping SelectPaged and Multi Mapping Jun 8, 2022
@henkmollema
Copy link
Owner

Currently there is not, but there could be. I'm open for PR's.

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

No branches or pull requests

2 participants