PlayerManagement/Application/Profiles/CustomEventParticipantProfile.cs
Tomasi - Developing 35e83c4735 beta 0.0.3
2024-11-26 08:43:01 +01:00

15 lines
513 B
C#

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