Ejemplo n.º 1
0
 /// <summary>POCO型を、POCO型にマップ</summary>
 /// <typeparam name="TSource">srcのPOCO型</typeparam>
 /// <typeparam name="TDestination">dstのPOCO型</typeparam>
 /// <param name="src">srcのPOCOインスタンス</param>
 /// <param name="dst">dstのPOCOインスタンス(null可)</param>
 /// <returns>TDestination型のPOCO</returns>
 public static TDestination Map <TSource, TDestination>(TSource src, TDestination dst)
 {
     return(PocoToPoco.Map <TSource, TDestination>(src, dst, null));
 }
Ejemplo n.º 2
0
 /// <summary>POCO型を、POCO型にマップ</summary>
 /// <typeparam name="TSource">srcのPOCO型</typeparam>
 /// <typeparam name="TDestination">dstのPOCO型</typeparam>
 /// <param name="src">srcのPOCOインスタンス</param>
 /// <param name="map">Dictionary(dst property or field string, src property or field string)</param>
 /// <returns>TDestination型のPOCO</returns>
 public static TDestination Map <TSource, TDestination>(TSource src, Dictionary <string, string> map)
 {
     return(PocoToPoco.Map <TSource, TDestination>(src, InstanceCreator <TDestination> .Factory(), map));
 }
Ejemplo n.º 3
0
 /// <summary>POCO型を、POCO型にマップ</summary>
 /// <typeparam name="TSource">srcのPOCO型</typeparam>
 /// <typeparam name="TDestination">dstのPOCO型</typeparam>
 /// <param name="src">srcのPOCOインスタンス</param>
 /// <returns>TDestination型のPOCO</returns>
 public static TDestination Map <TSource, TDestination>(TSource src)
 {
     return(PocoToPoco.Map <TSource, TDestination>(src, InstanceCreator <TDestination> .Factory(), null));
 }