mirror of https://github.com/abpframework/eventhub
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.
44 lines
1.4 KiB
44 lines
1.4 KiB
using AutoMapper;
|
|
using EventHub.Countries;
|
|
using EventHub.Events;
|
|
using EventHub.Events.Registrations;
|
|
using EventHub.Members;
|
|
using EventHub.Organizations;
|
|
using EventHub.Organizations.Memberships;
|
|
using EventHub.Users;
|
|
using Volo.Abp.AutoMapper;
|
|
using Volo.Abp.Identity;
|
|
|
|
namespace EventHub
|
|
{
|
|
public class EventHubApplicationAutoMapperProfile : Profile
|
|
{
|
|
public EventHubApplicationAutoMapperProfile()
|
|
{
|
|
CreateMap<Organization, OrganizationInListDto>();
|
|
CreateMap<Organization, OrganizationProfileDto>();
|
|
CreateMap<Organization, OrganizationDto>();
|
|
|
|
CreateMap<IdentityUser, OrganizationMemberDto>();
|
|
|
|
CreateMap<Event, EventDto>();
|
|
CreateMap<Event, EventInListDto>()
|
|
.Ignore(x => x.OrganizationName)
|
|
.Ignore(x => x.OrganizationDisplayName)
|
|
.Ignore(x => x.IsLiveNow);
|
|
CreateMap<Event, EventDetailDto>()
|
|
.Ignore(x => x.OrganizationId)
|
|
.Ignore(x => x.OrganizationName)
|
|
.Ignore(x => x.OrganizationDisplayName);
|
|
|
|
CreateMap<IdentityUser, EventAttendeeDto>();
|
|
|
|
CreateMap<Event, EventLocationDto>()
|
|
.Ignore(x => x.Country);
|
|
|
|
CreateMap<Country, CountryLookupDto>();
|
|
|
|
CreateMap<IdentityUser, UserDto>();
|
|
}
|
|
}
|
|
}
|
|
|