Example #1
0
        public static Mapping <TSource, TTarget> Auto(
            Func <MappingConfiguration <TSource, TTarget>, MappingConfiguration <TSource, TTarget> > cfgFunc)
        {
            var mapAction = MappingBuilder.Auto <TSource, TTarget>(configuration => cfgFunc(configuration));

            return(new Mapping <TSource, TTarget>(mapAction));
        }
Example #2
0
        public static Mapping <TSource, TTarget> Auto()
        {
            var mapAction = MappingBuilder.Auto <TSource, TTarget>(configuration => configuration);

            return(new Mapping <TSource, TTarget>(mapAction));
        }
Example #3
0
        public static Mapping <TSource, TTarget> Create(Func <MappingConfiguration <TSource, TTarget>, MappingConfiguration <TSource, TTarget> > cfgAction)
        {
            var mapAction = MappingBuilder.Create(cfgAction);

            return(new Mapping <TSource, TTarget>(mapAction));
        }