AutoMapper
AutoMapper copied to clipboard
Problem with `withProfile`
Function withProfile
don't return ICreateMapFluentFunctions
and i can't do this:
automapper
.createMap('object', 'AutoCallSettingsDto')
.withProfile('PascalCaseToCamelCase')
.convertToType(AutoCallSettingsDto);
How can I do this?
Find another problem with withProfile
. I have the class:
export class AutoCallSettingsDto {
private _maleVoice = undefined;
private _isForDebtors = false;
private _anyTimeAvailable = false;
private _autoCallOkType_ = 0;
}
If i using the map function in result i having:
{
_MaleVoice: undefined,
_IsForDebtors: false;
_AnyTimeAvailable: false;
_AutoCallOkType_: 0;
}