using Application.DataTransferObjects.DesertStormParticipants; using AutoMapper; using Database.Entities; namespace Application.Profiles; public class DesertStormParticipantProfile : Profile { public DesertStormParticipantProfile() { CreateMap() .ForMember(des => des.PlayerName, opt => opt.MapFrom(src => src.Player.PlayerName)); CreateMap() .ForMember(des => des.Id, opt => opt.MapFrom(src => Guid.CreateVersion7())); CreateMap(); } }