Ejemplo n.º 1
0
        public TDest Map <TSource, TDest>(TSource source, TDest destination)
        {
            EnsureMappingConfigured <TSource, TDest>();

            MappingExpression <TSource, TDest> .Apply(source, destination);

            return(destination);
        }
Ejemplo n.º 2
0
        public TDest Map <TSource, TDest>(TSource source) where TDest : new()
        {
            EnsureMappingConfigured <TSource, TDest>();

            var destination = new TDest();

            MappingExpression <TSource, TDest> .Apply(source, destination);

            return(destination);
        }