|
|
|
@ -10,13 +10,14 @@ namespace Volo.CmsKit.Public |
|
|
|
{ |
|
|
|
public PublicApplicationAutoMapperProfile() |
|
|
|
{ |
|
|
|
/* You can configure your AutoMapper mapping configuration here. |
|
|
|
* Alternatively, you can split your mapping configurations |
|
|
|
* into multiple profile classes for a better organization. */ |
|
|
|
|
|
|
|
CreateMap<CmsUser, CmsUserDto>(); |
|
|
|
CreateMap<Comment, CommentDto>().Ignore(x=> x.Author); |
|
|
|
CreateMap<Comment, CommentWithDetailsDto>().Ignore(x=> x.Replies).Ignore(x=> x.Author); |
|
|
|
|
|
|
|
CreateMap<Comment, CommentDto>() |
|
|
|
.Ignore(x=> x.Author); |
|
|
|
|
|
|
|
CreateMap<Comment, CommentWithDetailsDto>() |
|
|
|
.Ignore(x=> x.Replies) |
|
|
|
.Ignore(x=> x.Author); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|