You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
710 B
26 lines
710 B
2 years ago
|
using AutoMapper;
|
||
|
using Volo.Abp.AutoMapper;
|
||
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
||
|
using Win_in.Sfs.Basedata.Domain;
|
||
|
|
||
|
namespace Win_in.Sfs.Basedata.Application;
|
||
|
|
||
|
public partial class BasedataApplicationAutoMapperProfile : Profile
|
||
|
{
|
||
|
private void ShiftAutoMapperProfile()
|
||
|
{
|
||
|
CreateMap<Shift, ShiftDTO>()
|
||
|
.ReverseMap();
|
||
|
|
||
|
CreateMap<ShiftImportInput, Shift>()
|
||
|
.IgnoreAuditedObjectProperties()
|
||
|
.Ignore(x => x.TenantId)
|
||
|
.Ignore(x => x.ExtraProperties)
|
||
|
.Ignore(x => x.ConcurrencyStamp);
|
||
|
|
||
|
CreateMap<Shift, ShiftImportInput>()
|
||
|
.Ignore(x => x.ReportStatus)
|
||
|
.Ignore(x => x.ReportReason);
|
||
|
}
|
||
|
}
|