BaseBusinessMapper.cs
690 Bytes
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();
//});
}
}
}