henkmollema/Dommel

SelectPaged and Multi Mapping

jobvitral opened this issue · 1 comments

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;
});

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