Fix a bunch of EF issues
I don't fully understand the issue that was present before, so this is more of a workaround than a real fix.
This commit is contained in:
parent
697a3bb52b
commit
4b13802301
10 changed files with 44 additions and 13 deletions
|
|
@ -68,9 +68,7 @@ public class AutoMapperProfiles : Profile
|
|||
CreateMap<AppUserCollection, AppUserCollectionDto>()
|
||||
.ForMember(dest => dest.Owner, opt => opt.MapFrom(src => src.AppUser.UserName))
|
||||
.ForMember(dest => dest.ItemCount, opt => opt.MapFrom(src => src.Items.Count));
|
||||
CreateMap<Person, PersonDto>()
|
||||
.ForMember(dst => dst.Aliases, opt =>
|
||||
opt.MapFrom(src => src.Aliases.Select(pa => pa.Alias).ToList()));
|
||||
CreateMap<Person, PersonDto>();
|
||||
CreateMap<Genre, GenreTagDto>();
|
||||
CreateMap<Tag, TagDto>();
|
||||
CreateMap<AgeRating, AgeRatingDto>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue