using Mapster; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Application.Core { /// /// /// public class Mapper : IRegister { /// /// /// /// public void Register(TypeAdapterConfig config) { #region 树排序码 config.ForType(); config.ForType() .Map(dest => dest.ParentIds, src => src.ParentIds); config.ForType() .Map(dest => dest.UpdateUserID, src => UserManager.UserID) .Map(dest => dest.UpdateTime, src => DateTime.Now); config.ForType() .Map(dest => dest.UpdateUserID, src => UserManager.UserID) .Map(dest => dest.UpdateTime, src => DateTime.Now) .Map(dest => dest.ParentIds, src => src.ParentIds); #endregion } } }