Remove unnecessary property

pull/8491/head
EngincanV 5 years ago
parent 4fcf7fafda
commit a1bca98263

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

@ -29,9 +29,6 @@ namespace Volo.Blogging.Posts
public int CommentCount { get; set; }
[CanBeNull]
public BlogUser Writer { get; set; }
public List<Tag> Tags { get; set; }
public Guid? CreatorId { get; set; }

Loading…
Cancel
Save