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