Update BloggingApplicationAutoMapperProfile.cs

pull/765/head
Yunus Emre Kalkan 7 years ago
parent 1426a20ff7
commit 62f6204a41

@ -15,7 +15,7 @@ namespace Volo.Blogging
public BloggingApplicationAutoMapperProfile() public BloggingApplicationAutoMapperProfile()
{ {
CreateMap<Blog, BlogDto>(); CreateMap<Blog, BlogDto>();
CreateMap<Post, PostWithDetailsDto>().Ignore(x=>x.Writer).Ignore(x=>x.CommentCount); 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>();
} }

Loading…
Cancel
Save