public static ISourcedDestinationConfiguration <T> AsImmutable <T>(this ISourcedDestinationConfiguration <T> cfg, params Expression <Func <T, object> >[] destinationProperties) { foreach (var destinationProperty in destinationProperties) { cfg.ApplyingConvention(new ImmutableDestinationResolver(new PropertyNameResolver(Reflect.GetProperty(destinationProperty).Name)), destinationProperty); } return(cfg); }
public static ISourcedDestinationConfiguration <T> Ignoring <T>(this ISourcedDestinationConfiguration <T> cfg, params Expression <Func <T, object> >[] properties) { return(cfg.ApplyingConvention(new IgnoreResolver(), properties)); }
public Toggler(ISourcedDestinationConfiguration <TDest> cfg, Expression <Func <TDest, object> > property) { this.cfg = cfg; this.property = property; }