Add IgnoreExtraProperties extension method for automapper mapping.

pull/4164/head
Halil İbrahim Kalkan 5 years ago
parent 39cf44545b
commit f0d417c119

@ -1,4 +1,5 @@
using System.Collections.Generic;
using Volo.Abp.AutoMapper;
using Volo.Abp.Data;
using Volo.Abp.ObjectExtending;
@ -35,5 +36,13 @@ namespace AutoMapper
})
);
}
public static IMappingExpression<TSource, TDestination> IgnoreExtraProperties<TSource, TDestination>(
this IMappingExpression<TSource, TDestination> mappingExpression)
where TDestination : IHasExtraProperties
where TSource : IHasExtraProperties
{
return mappingExpression.Ignore(x => x.ExtraProperties);
}
}
}
Loading…
Cancel
Save