Method ForAllMembers
- Namespace
- Mapperion
- Assembly
- Mapperion.dll
ForAllMembers(Action<IMemberConfigurationExpression<TSource, TDestination, object>>)
Applies the same configuration to every destination member.
IMappingExpression<TSource, TDestination> ForAllMembers(Action<IMemberConfigurationExpression<TSource, TDestination, object>> memberOptions)
Parameters
memberOptionsAction<IMemberConfigurationExpression<TSource, TDestination, object>>The configuration applied to each member.
Returns
- IMappingExpression<TSource, TDestination>
This expression, for chaining.
Remarks
Every writable member of the destination, including the ones no call has mentioned. It runs before the conventions fill anything in, so a member it ignores stays ignored and a member it gives a source to keeps that source.
Exceptions
- ArgumentNullException
memberOptionsis null.