2020-12-28 14:55:48 +08:00
|
|
|
|
using Nelibur.ObjectMapper;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Hncore.Infrastructure.Extension
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class TinyMapperExtension
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void Binds<T1, T2>()
|
|
|
|
|
|
{
|
|
|
|
|
|
TinyMapper.Bind<T1, T2>();
|
|
|
|
|
|
TinyMapper.Bind<T2, T1>();
|
|
|
|
|
|
|
|
|
|
|
|
TinyMapper.Bind<List<T1>, List<T2>>();
|
|
|
|
|
|
TinyMapper.Bind<List<T2>, List<T1>>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2020-10-07 20:25:03 +08:00
|
|
|
|
}
|