23 lines
518 B
C#
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>();
|
|
}
|
|
} |