Пример #1
0
 public override void OverrideMapping(IMappingCollection <TFrom, TTo, TContext> mapping)
 {
     foreach (var propertyInfo in mapping.Unmapped.Destination.ToArray())
     {
         mapping.IgnoreMember(propertyInfo);
     }
 }
Пример #2
0
 public static IMappingCollection <TFrom, TTo, TContext> IgnoreUnmapped <TFrom, TTo, TContext>(this IMappingCollection <TFrom, TTo, TContext> mappingCollection)
 {
     foreach (var memberInfo in mappingCollection.Unmapped.Destination)
     {
         mappingCollection.IgnoreMember(memberInfo);
     }
     return(mappingCollection);
 }