예제 #1
0
        public Mapper SetConfig <TSource, TDestination>(
            Expression <Func <TSource, object> > source,
            Expression <Func <TDestination, object> > destination)
        {
            ConfigurationMapCollection <TSource, TDestination> .Set(
                new ConfigurationMap <TSource, TDestination>()
            {
                Source      = source,
                Destination = destination
            });

            return(this);
        }
예제 #2
0
        public Mapper SetConfig <TSource, TDestination>(
            Expression <Func <TSource, object> > source,
            Expression <Func <TDestination, object> > destination,
            Expression <Func <TSource, object> > appendValue,
            string SeparatorAppend)
        {
            ConfigurationMapCollection <TSource, TDestination> .Set(
                new ConfigurationMap <TSource, TDestination>()
            {
                Source          = source,
                Destination     = destination,
                AppendValue     = appendValue,
                SeparatorAppend = SeparatorAppend
            });

            return(this);
        }