Abp.TinyMapper with Abp https://github.com/aspnetboilerplate/aspnetboilerplate. (Not support .net core.)
Available on nuget
PM> Install-Package Abp.TinyMapper
public override void PreInitialize()
{
Configuration.Modules.AbpTinyMapper().EnableAutoBinding = true;
Configuration.Modules.AbpTinyMapper().EnablePolymorphicMapping = true;
Configuration.Modules.AbpTinyMapper().Configurators.Add(() =>
{
//custom your tiny bind
});
}
[TinyMap(typeof(Info))]
public class Dto{
public int Id{get;set;}
public string Name{get;set;}
}
public class Info{
public int Id{get;set;}
public string Name{get;set;}
}
var dto=new Dto{id=1,Name="Sdzeng"};
var info=dto.MapTo<Info>();
dto=info.MapTo<Dto>();