Projekt

Obecné

Profil

Stáhnout (592 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 b9c5b7dd Vojtěch Bartička
using AutoMapper;
2
using Core.Entities;
3
using Models.Tags;
4
using System;
5
using System.Collections.Generic;
6
using System.Linq;
7
using System.Text;
8
using System.Threading.Tasks;
9
10
namespace Core.MapperProfiles
11
{
12
    public class TagProfileEF : Profile
13
    {
14
        public TagProfileEF()
15
        {
16
            CreateMap<TagCategory, TagCategoryInfo>();
17
            CreateMap<Tag, TagInfo>();
18
            CreateMap<SubTag, SubTagInfo>();
19 2ebf32d0 Vojtěch Bartička
            CreateMap<AnnotationTag, TagInstanceInfo>()
20
                .ForMember(ti => ti.OccurenceId, opt => opt.MapFrom(at => at.Id));
21 b9c5b7dd Vojtěch Bartička
        }
22
    }
23
}