引用RsCode.dll

实例:

  1. 映射
OrderInfo info;
OrderItem item;
OrderInfoDto infoDto;

info.MapTo<OrderInfoDto>();

2.忽略映射

[IgnoreMap]
public int Id{get;set;}

3.自定义映射

info.MapTo<OrderInfoDto>(x=>{
   x.CreateMap<s,d>();
});

results matching ""

    No results matching ""