|
|
@ -20,10 +20,11 @@ namespace Volo.Blogging |
|
|
CreateMap<Post, PostWithDetailsDto>().Ignore(x=>x.Writer).Ignore(x=>x.CommentCount).Ignore(x=>x.Tags); |
|
|
CreateMap<Post, PostWithDetailsDto>().Ignore(x=>x.Writer).Ignore(x=>x.CommentCount).Ignore(x=>x.Tags); |
|
|
CreateMap<Comment, CommentWithDetailsDto>().Ignore(x => x.Writer); |
|
|
CreateMap<Comment, CommentWithDetailsDto>().Ignore(x => x.Writer); |
|
|
CreateMap<Tag, TagDto>(); |
|
|
CreateMap<Tag, TagDto>(); |
|
|
CreateMap<Post, PostCacheItem>().Ignore(x=>x.Writer).Ignore(x=>x.CommentCount).Ignore(x=>x.Tags); |
|
|
CreateMap<Post, PostCacheItem>().Ignore(x=>x.CommentCount).Ignore(x=>x.Tags); |
|
|
CreateMap<PostCacheItem, PostWithDetailsDto>() |
|
|
CreateMap<PostCacheItem, PostWithDetailsDto>() |
|
|
.IgnoreModificationAuditedObjectProperties() |
|
|
.IgnoreModificationAuditedObjectProperties() |
|
|
.IgnoreDeletionAuditedObjectProperties() |
|
|
.IgnoreDeletionAuditedObjectProperties() |
|
|
|
|
|
.Ignore(x=>x.Writer) |
|
|
.Ignore(x => x.CommentCount) |
|
|
.Ignore(x => x.CommentCount) |
|
|
.Ignore(x => x.Tags); |
|
|
.Ignore(x => x.Tags); |
|
|
} |
|
|
} |
|
|
|