Example #1
0
        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);
        }
Example #2
0
 public static ISourcedDestinationConfiguration <T> Ignoring <T>(this ISourcedDestinationConfiguration <T> cfg, params Expression <Func <T, object> >[] properties)
 {
     return(cfg.ApplyingConvention(new IgnoreResolver(), properties));
 }
Example #3
0
 public Toggler(ISourcedDestinationConfiguration <TDest> cfg, Expression <Func <TDest, object> > property)
 {
     this.cfg      = cfg;
     this.property = property;
 }