Browse Source

Remove unnecessary property

pull/8491/head
EngincanV 6 years ago
parent
commit
a1bca98263
  1. 3
      modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/BloggingApplicationAutoMapperProfile.cs
  2. 3
      modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Posts/PostCacheItem.cs

3
modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/BloggingApplicationAutoMapperProfile.cs

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

3
modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Posts/PostCacheItem.cs

@ -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