mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-11 20:19:27 +08:00
添加automapper
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.WebCore.Mapper
|
||||
{
|
||||
public class AutoMapperProfile : Profile
|
||||
{
|
||||
// 添加你的实体映射关系.
|
||||
public AutoMapperProfile()
|
||||
{
|
||||
//CreateMap<DBPoundSheet, PoundSheetViewModel>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.WebCore.Mapper
|
||||
{
|
||||
public class RegisterMapProfile : Profile
|
||||
{
|
||||
//添加你的实体映射关系和出参字段
|
||||
//public RegisterMapProfile()
|
||||
//{
|
||||
// #region 排班信息
|
||||
// CreateMap<JToken, SchedulHeadViewModel>()
|
||||
// .ForMember(dest => dest.HospitalId,
|
||||
// options => options.MapFrom(c => c.SelectToken("Hospital_ID")))
|
||||
// .ForMember(dest => dest.BranchId,
|
||||
// options => options.MapFrom(c => c.SelectToken("Branch_ID")))
|
||||
// .ForMember(dest => dest.SchedulId,
|
||||
// options => options.MapFrom(c => c.SelectToken("ScheduHeadID")));
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user