/// <summary> /// 使用BindingConfig映射类型 /// </summary> /// <typeparam name="TSource">源类型</typeparam> /// <typeparam name="TTarget">目标类型</typeparam> /// <param name="config">映射规则,没有规则则使用默认规则</param> public static void Bind <TSource, TTarget>(Action <IBindingConfig <TSource, TTarget> > config = null) { MapperUtil.Bind <TSource, TTarget>(config); }
/// <summary> /// 使用默认规则映射类型 /// </summary> /// <param name="source">源类型</param> /// <param name="target">目标类型</param> public static void Bind(Type source, Type target) { MapperUtil.Bind(source, target); }