Permalink
Browse files

Added Ignore to non-generic IMemberConfigurationExpression

  • Loading branch information...
1 parent 2ca24b0 commit 2b2ef0075f033b176fdfe37ad77ca7dfe6d2aac5 @markrendle committed Feb 3, 2011
Showing with 6 additions and 0 deletions.
  1. +1 −0 src/AutoMapper/IMappingExpression.cs
  2. +5 −0 src/AutoMapper/Internal/MappingExpression.cs
View
1 src/AutoMapper/IMappingExpression.cs
@@ -36,6 +36,7 @@ public interface IMemberConfigurationExpression
IResolutionExpression ResolveUsing(IValueResolver valueResolver);
IResolverConfigurationExpression ResolveUsing(Type valueResolverType);
IResolverConfigurationExpression ResolveUsing<TValueResolver>();
+ void Ignore();
}
public interface IMemberConfigurationExpression<TSource>
View
5 src/AutoMapper/Internal/MappingExpression.cs
@@ -84,6 +84,11 @@ public IResolverConfigurationExpression ResolveUsing<TValueResolver>()
return new ResolutionExpression(_typeMap.SourceType, _propertyMap);
}
+
+ public void Ignore()
+ {
+ _propertyMap.Ignore();
+ }
}
internal class MappingExpression<TSource, TDestination> : IMappingExpression<TSource, TDestination>, IMemberConfigurationExpression<TSource>, IFormatterCtorConfigurator

0 comments on commit 2b2ef00

Please sign in to comment.