User1034446946 posted
Hi
I have this:
public static IMappingExpression<TSource, TDestination> FixRootDest<TSource, TDestination>(this IMappingExpression<TSource, TDestination> mappingExpression)
where TDestination : RootDest
{
mappingExpression.ForMember(dest => dest.Value1, opt => opt.Ignore());
mappingExpression.ForMember(dest => dest.Value2, opt => opt.Ignore());
mappingExpression.ForMember(dest => dest.Value3, opt => opt.Ignore());
mappingExpression.ForMember(dest => dest.Value4, opt => opt.Ignore());
mappingExpression.ForMember(dest => dest.Value5, opt => opt.Ignore());
return mappingExpression;
}
However how do i state that both the TSource and the TDesination both inherit from the RootDest