using ECMJobRunner.Application.ProfileHistories.Commands; using ECMJobRunner.Domain.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ECMJobRunner.Application.ProfileHistories; /// /// /// public class MappingProfiles : AutoMapper.Profile { /// /// /// public MappingProfiles() { CreateMap() .ForMember(dest => dest.Id, opt => opt.Ignore()) .ForMember(dest => dest.AddedWhen, opt => opt.MapFrom(_ => DateTime.Now)) .ForMember(dest => dest.ChangedWho, opt => opt.Ignore()) .ForMember(dest => dest.ChangedWhen, opt => opt.Ignore()) .ForMember(dest => dest.CfgProfile, opt => opt.Ignore()); } }