简化对象映射Mapper,简化自定义仓储
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Template.Application.Contracts.School.Dtos;
|
||||
using Yi.Template.Domain.School.Entities;
|
||||
|
||||
namespace Yi.Template.Application.School.MapperConfig
|
||||
{
|
||||
public class StudentProfile: Profile
|
||||
{
|
||||
public StudentProfile()
|
||||
{
|
||||
CreateMap<StudentGetListInputVo, StudentEntity>();
|
||||
CreateMap<StudentCreateInputVo, StudentEntity>();
|
||||
CreateMap<StudentUpdateInputVo, StudentEntity>();
|
||||
CreateMap<StudentEntity, StudentGetListOutputDto>();
|
||||
CreateMap<StudentEntity, StudentGetOutputDto>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user