public static void IgnoreUnmapped <TSrc, TDest>(this IProfileExpression profile) { profile.IgnoreUnmapped(typeof(TSrc), typeof(TDest)); }
/// <summary> /// Ignore all properties from source member that's not available on destination /// </summary> /// <typeparam name="TSrc"></typeparam> /// <typeparam name="TDst"></typeparam> /// <param name="profile"></param> internal static void IgnoreUnmapped <TSrc, TDst>(this IProfileExpression profile) => profile.IgnoreUnmapped(typeof(TSrc), typeof(TDst));
public static void IgnoreUnmapped(this IProfileExpression profile, Type src, Type dest) { profile.IgnoreUnmapped((TypeMap map) => map.SourceType == src && map.DestinationType == dest); }
/// <summary> /// Ignore all properties from source member that's not available on destination /// </summary> /// <param name="profile"></param> /// <param name="src"></param> /// <param name="dest"></param> internal static void IgnoreUnmapped(this IProfileExpression profile, Type src, Type dest) => profile.IgnoreUnmapped(map => map.SourceType == src && map.DestinationType == dest);