22 lines
631 B
C#
Raw Normal View History

2025-01-13 21:06:59 +08:00
using AutoMapper;
using YD_XinWei.Api.SmartSportsEntitys;
using YD_XinWei.Commons.Dto.HomeWork;
namespace YD_XinWei.Api.AutoMappers
{
public class MappingProfile : Profile
{
public MappingProfile()
{
// 建立对象之间的映射规则
// 如果有需要,您可以定义其他的映射规则
// CreateMap<SourceClass2, DestinationClass2>();
// ...
CreateMap<AddHomeWorkDto, S_HomeWork>();
CreateMap<HomeWorkStudentsDto, S_HomeWorkStudents>();
CreateMap<S_HomeWorkStudents, HomeWorkStudentsDto>();
}
}
}