zs
2025-04-28 1f32ea02c1910c417f159cba81a296e66ae7484c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using AutoMapper;
using CMS.Plugin.HIAWms.Application.Contracts.Dtos.Samples;
using CMS.Plugin.HIAWms.Domain.Samples;
using Volo.Abp.ObjectExtending;
 
namespace CMS.Plugin.HIAWms.Application.MapperProfiles;
 
/// <summary>
/// AutoMapper配置
/// </summary>
/// <seealso cref="AutoMapper.Profile" />
public class SampleAutoMapperProfile : Profile
{
    /// <summary>
    /// Initializes a new instance of the <see cref="SampleAutoMapperProfile"/> class.
    /// </summary>
    public SampleAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<Sample, SampleDto>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None);
    }
}