Projekt

Obecné

Profil

Stáhnout (750 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using AutoMapper;
2
using Core.Entities;
3
using Models.Documents;
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 DocumentProfileEF : Profile
13
    {
14
        public DocumentProfileEF()
15
        {
16
            CreateMap<Document, DocumentListInfo>();
17
                /*.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id))
18
                .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Name))
19
                .ForMember(dest => dest.Length, opt => opt.MapFrom(src => src.Length))
20
                .ForMember(dest => dest.RequiredAnnotations, opt => opt.MapFrom(src => src.RequiredAnnotations));*/
21

    
22
        }
23
    }
24
}
(1-1/3)