Beispiel #1
0
 /// <summary>
 /// 获取类型的成员映射规则
 /// </summary>
 /// <typeparam name="TSource">源类型</typeparam>
 /// <typeparam name="TTarget">目标类型</typeparam>
 /// <returns></returns>
 public static List <MappingMember> GetMemberBinding <TSource, TTarget>()
 {
     return(MapperUtil.GetMemberBinding <TSource, TTarget>());
 }
Beispiel #2
0
 /// <summary>
 /// 获取类型的成员映射规则
 /// </summary>
 /// <param name="source">源类型</param>
 /// <param name="target">目标类型</param>
 /// <returns></returns>
 public static List <MappingMember> GetMemberBinding(Type source, Type target)
 {
     return(MapperUtil.GetMemberBinding(source, target));
 }