Blame view

netcore/src/Modularity/Order/NCC.Order.Entitys/Mapper/BaseBusinessMapper.cs 690 Bytes
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  using NCC.Common.Helper; 
  using Mapster;
  using System.Collections.Generic;
  using NCC.Code;
  
  namespace NCC.Order.Entitys.Mapper.BaseBusiness
  {
      public class Mapper : IRegister
      {
          public void Register(TypeAdapterConfig config)
          {
              //config.ForType<BaseBusinessCrInput, BaseBusinessEntity>()
              //  .BeforeMapping((src, desc) =>
              //  {
              //      desc.Images = src.images.ToJson();
              //  });
  
              //config.ForType<BaseBusinessEntity, BaseBusinessInfoOutput>()
              //.BeforeMapping((src, desc) =>
              //{
              //    desc.images = src.Images.ToObject();
              //});
          }
      }
  }