automapper ~master (2019-01-24T20:09:57Z)
Dub
Repo
ObjectMapper
automapper
mapper
Allow to create compile-time generated class and struct mapper.
package
class
ObjectMapper : IMapper!(MapperConfig.TSource, MapperConfig.TDest)(
MapperConfig
)
if
(
isObjectMapperConfig
!
MapperConfig
) {
alias
TSource
=
MapperConfig
.
TSource
;
alias
TDest
=
MapperConfig
.
TDest
;
this
(RuntimeAutoMapper automapper);
static if
(
is(MapperConfig : ObjectMapperConfig!(TSource, TDest, TSourceConv, TDestConv, Reverse, Mappings), TSourceConv, TDestConv, bool Reverse, Mappings...)
)
static
TDest
map
(TSource source, AutoMapper am);
static if
(
is(MapperConfig : ObjectMapperConfig!(TSource, TDest, TSourceConv, TDestConv, Reverse, Mappings), TSourceConv, TDestConv, bool Reverse, Mappings...)
)
TDest
map
(TSource a);
}
Constructors
this
this
(RuntimeAutoMapper automapper)
Undocumented in source.
Members
Aliases
TDest
alias
TDest
=
MapperConfig
.
TDest
Undocumented in source.
TSource
alias
TSource
=
MapperConfig
.
TSource
Undocumented in source.
Functions
map
TDest
map
(TSource a)
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
map
TDest
map
(TSource source, AutoMapper am)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
automapper
mapper
classes
ObjectMapper
interfaces
IMapper
templates
generateReversedMapperConfig
isObjectMapper
listMappedObjectMember
tryAutoMapUnmappedMembers
Allow to create compile-time generated class and struct mapper.