Skip to content

Commit fd9fc2f

Browse files
committed
Add missing object mapping configuration.
1 parent 79d1940 commit fd9fc2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/Dto/RoleMapProfile.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public RoleMapProfile()
2020

2121
CreateMap<Role, RoleDto>().ForMember(x => x.GrantedPermissions,
2222
opt => opt.MapFrom(x => x.Permissions.Where(p => p.IsGranted)));
23+
24+
CreateMap<Role, RoleListDto>();
25+
CreateMap<Role, RoleEditDto>();
26+
CreateMap<Permission, FlatPermissionDto>();
2327
}
2428
}
2529
}

0 commit comments

Comments
 (0)