Taylohtio/GeneralApi/GeneralApi.Core/Infrastructure/AutoMapper/Profiles/DtoProfile.cs

25 lines
942 B
C#

using AutoMapper;
using Taloyhtio.GeneralApi.Core.Entities;
namespace Taloyhtio.GeneralApi.Core.Infrastructure.AutoMapper.Profiles
{
public class DtoProfile : Profile
{
protected override void Configure()
{
Mapper.CreateMap<GeneralApi.Common.DTO.Condo, Condo>()
.ForMember(x => x.Id, o => o.Ignore())
.ForMember(x => x.BusinessIdPMC, o => o.Ignore())
.ForMember(x => x.WebAppId, o => o.Ignore())
.ForMember(x => x.SiteId, o => o.Ignore())
.ForMember(x => x.WebId, o => o.Ignore())
.ForMember(x => x.LastUpdated, o => o.Ignore());
Mapper.CreateMap<GeneralApi.Common.DTO.BoardMember, BoardMember>()
.ForMember(x => x.Id, o => o.Ignore())
.ForMember(x => x.Condo, o => o.Ignore())
.ForMember(x => x.LastUpdated, o => o.Ignore());
}
}
}