| | |
| | | using AutoMapper; |
| | | using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkPlan; |
| | | using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkTask; |
| | | using CMS.Plugin.PipeLineLems.Domain.WorkTask; |
| | | using Volo.Abp.ObjectExtending; |
| | | using static CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkTask.WorkTasksImportModel; |
| | | |
| | | namespace CMS.Plugin.PipeLineLems.Application.MapperProfiles; |
| | | |
| | | using AutoMapper; |
| | | using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkTask; |
| | | using CMS.Plugin.PipeLineLems.Domain.WorkTask; |
| | | using Volo.Abp.ObjectExtending; |
| | | using static CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkTask.WorkTasksImportModel; |
| | | |
| | | namespace CMS.Plugin.PipeLineLems.Application.MapperProfiles; |
| | | |
| | | /// <summary> |
| | | /// 作业任务表AutoMapper配置 |
| | | /// </summary> |
| | | /// <seealso cref="AutoMapper.Profile" /> |
| | | public class WorkTaskAutoMapperProfile : Profile |
| | | { |
| | | public class WorkTaskAutoMapperProfile : Profile |
| | | { |
| | | /// <summary> |
| | | /// Initializes a new instance of the <see cref="WorkTaskAutoMapperProfile"/> class. |
| | | /// </summary> |
| | | public WorkTaskAutoMapperProfile() |
| | | { |
| | | public WorkTaskAutoMapperProfile() |
| | | { |
| | | /* You can configure your AutoMapper mapping configuration here. |
| | | * Alternatively, you can split your mapping configurations |
| | | * into multiple profile classes for a better organization. */ |
| | | CreateMap<WorkTask, WorkTaskDto>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | CreateMap<WorkTaskCreateDto, WorkTask>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | CreateMap<GetWorkTaskInput, WorkTask>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | |
| | | CreateMap<WorkPlanCreateDto, WorkTaskCreateDto>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | |
| | | CreateMap<WorkTaskUpdateDto, WorkTask>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | |
| | | CreateMap<WorkTaskImportModel, WorkTaskCreateDto>(MemberList.None); |
| | | CreateMap<WorkTaskImportModel, WorkTaskUpdateDto>(MemberList.None); |
| | | * into multiple profile classes for a better organization. */ |
| | | CreateMap<WorkTask, WorkTaskDto>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | CreateMap<WorkTaskCreateDto, WorkTask>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | CreateMap<GetWorkTaskInput, WorkTask>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | CreateMap<WorkTaskUpdateDto, WorkTask>(MemberList.None).MapExtraProperties(MappingPropertyDefinitionChecks.None); |
| | | |
| | | CreateMap<WorkTaskImportModel, WorkTaskCreateDto>(MemberList.None); |
| | | CreateMap<WorkTaskImportModel, WorkTaskUpdateDto>(MemberList.None); |
| | | CreateMap<WorkTaskImportModel, WorkTask>(MemberList.None); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |