ExternalAPI_NET8/Model/Profiles/CustomProfile.cs
2026-05-21 17:23:36 +08:00

23 lines
518 B
C#

#region
using AutoMapper;
using Web.Core.Model.DTO;
using Web.Core.Model.Entity;
#endregion
namespace Web.Core.Model.Profiles;
public class CustomProfile : Profile
{
/// <summary>
/// 配置构造函数,用来创建关系映射
/// </summary>
public CustomProfile()
{
CreateMap<Student, StudentDto>();
CreateMap<MDB_SellOrders, SellOrderProcessDTO>();
CreateMap<MDB_ProduceOrder, ProduceOrderDTO>();
CreateMap<MDB_ProcessDetail, ProcessDetailDTO>();
}
}