Пример #1
0
        public TARGETTYPE MapFrom(SOURCETYPE source)
        {
            var newTarget = Create();

            _mapperFactory.CreateUpdate <SOURCETYPE, TARGETTYPE>().Update(source, newTarget);
            return(newTarget);
        }
Пример #2
0
        public TOTYPE Build()
        {
            var target = new TOTYPE();

            _mapperFactory.CreateUpdate <FROMTYPE, TOTYPE>().Update(_source, target);
            return(target);
        }