예제 #1
0
        public static TDestination MapCollection<TSource,TDestination>(this TSource source)

        {

            MapperConfig.Configuration();

            return Mapper.Map<TSource,TDestination>(source);

        }
예제 #2
0
        public static TDestination Map<TDestination>(this object TSource)

         {

             MapperConfig.Configuration();

             return Mapper.Map<TDestination>(TSource);

         }