using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DG.Core
{
public static class MapperExtendsions
{
///
/// 映射到
///
///
///
///
///
public static TTarget Map(this TSource source) => Mapper.Instance.Map(source);
///
/// 映射到
///
///
///
///
///
public static List Map(this List sources) => Mapper.Instance.Map(sources);
///
/// 复制到
///
///
///
///
///
/// 因为重名了,所以对方法取别名,同 MapTo
public static TTarget Replicate(this TSource source) => source.Map();
///
/// 复制到
///
///
///
///
///
/// 因为重名了,所以对方法取别名,同 MapTo
public static List Replicate(this List sources) => sources.Map();
}
}