示例#1
0
 public static TDestination MapTo <TDestination>(this INeedMapper item) where TDestination : class, new()
 {
     return(ObjectMapperFactory.GetObjectMapper().MapTo <TDestination>(item));
 }
示例#2
0
 public static IQueryable <TDestination> ProjectTo <TDestination>(this IQueryable source)
     where TDestination : class, new()
 {
     return(ObjectMapperFactory.GetObjectMapper().ProjectTo <TDestination>(source));
 }
示例#3
0
 public static object MapTo(this object source, Type sourceType, Type destinationType)
 {
     return(ObjectMapperFactory.GetObjectMapper().MapTo(source, sourceType, destinationType));
 }
示例#4
0
 public static IEnumerable <TDestination> MapToCollection <TSource, TDestination>(this IEnumerable <TSource> list)
     where TSource : INeedMapper
     where TDestination : class, new()
 {
     return(ObjectMapperFactory.GetObjectMapper().MapToCollection <TSource, TDestination>(list));
 }
示例#5
0
 public static TDestination MapTo <TSource, TDestination>(this TSource source, TDestination destination)
     where TSource : INeedMapper
     where TDestination : class, new()
 {
     return(ObjectMapperFactory.GetObjectMapper().MapTo(source, destination));
 }