Beispiel #1
0
 public static TDestination MapTo <TDestination>(this INeedMapper item) where TDestination : class, new()
 {
     return(ObjectMapperFactory.GetObjectMapper().MapTo <TDestination>(item));
 }
Beispiel #2
0
 public static IQueryable <TDestination> ProjectTo <TDestination>(this IQueryable source)
     where TDestination : class, new()
 {
     return(ObjectMapperFactory.GetObjectMapper().ProjectTo <TDestination>(source));
 }
Beispiel #3
0
 public static object MapTo(this object source, Type sourceType, Type destinationType)
 {
     return(ObjectMapperFactory.GetObjectMapper().MapTo(source, sourceType, destinationType));
 }
Beispiel #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));
 }
Beispiel #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));
 }