upgrade to v8 remove automap too.

This commit is contained in:
Kham
2025-11-10 11:32:00 +11:00
parent d6bf268167
commit e318260acd
7 changed files with 116 additions and 370 deletions
-27
View File
@@ -1,27 +0,0 @@
using AutoMapper;
using CarParkValidationAPI.Entities;
using CarParkValidationAPI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Datas
{
public class AutoMapping: Profile
{
public AutoMapping()
{
CreateMap<ConcessionType, ConcessionTypeDto>()
.ForMember( dest => dest.Id, opt => opt.MapFrom(src => src.ConcessionTypeID))
.ForMember(dest => dest.Description , opt=> opt.MapFrom(src=> src.ConcessionDesc))
.ForMember(dest => dest.Display, opt => opt.MapFrom(src => src.ConcessionDisplay))
.ReverseMap();
CreateMap<ValidationPoint, ValidationPointDto>()
.ForMember(dest => dest.Id , opt => opt.MapFrom(src => src.ValidationPointID))
.ForMember(dest => dest.Display, opt => opt.MapFrom(src => src.DisplayName))
.ReverseMap();
/*etc...*/
}
}
}