22 lines
631 B
C#
22 lines
631 B
C#
![]() |
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>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|