Method AddProfile
- Namespace
- Mapperion
- Assembly
- Mapperion.dll
AddProfile(Profile)
Registers an already-built profile.
void AddProfile(Profile profile)
Parameters
profileProfileThe profile whose maps are added.
Exceptions
- MapperConfigurationException
One of its pairs was already declared.
AddProfile<TProfile>()
Registers a profile by type.
void AddProfile<TProfile>() where TProfile : Profile, new()
Type Parameters
TProfileThe profile type, which needs a parameterless constructor.
Exceptions
- MapperConfigurationException
One of its pairs was already declared.