You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
480 B
C#

11 months ago
using Mapster;
using Volo.Abp.ObjectMapping;
namespace NPin.Framework.Mapster;
public class MapsterAutoObjectMappingProvider: IAutoObjectMappingProvider
{
public TDestination Map<TSource, TDestination>(object source)
{
// var sss = typeof(TDestination).Name;
return source.Adapt<TDestination>();
}
public TDestination Map<TSource, TDestination>(TSource source, TDestination destination)
{
return source.Adapt(destination);
}
}