Abp.AutoMapper扩展(1) --static class AutoMapExtensions

2022-12-14,,,

  // 摘要:
        //     Converts an object to another using AutoMapper library. Creates a new object
        //     of TDestination. There must be a mapping between objects before calling this
        //     method.
        //    **利用AutoMapper将一个实体转换为另一个实体.创建一个新的TDestination的对象。在调用方法之前必须有一个映射
        // 参数:
        //   source:
        //     Source object
        //  **原对象实体
        // 类型参数:
        //   TDestination:
        //     Type of the destination object

  //  **目标对象类型
        public static TDestination MapTo<TDestination>(this object source);

   // 摘要:
        //     Execute a mapping from the source object to the existing destination object There
        //     must be a mapping between objects before calling this method.
        //    执行一个从原类型到目标类型的映射
        // 参数:
        //   source:
        //     Source object
        //
        //   destination:
        //     Destination object
        //
        // 类型参数:
        //   TSource:
        //     Source type
        //
        //   TDestination:
        //     Destination type
        public static TDestination MapTo<TSource, TDestination>(this TSource source, TDestination destination);

Abp.AutoMapper扩展(1) --static class AutoMapExtensions的相关教程结束。

《Abp.AutoMapper扩展(1) --static class AutoMapExtensions.doc》

下载本文的Word格式文档,以方便收藏与打印。