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