AutoMapper icon indicating copy to clipboard operation
AutoMapper copied to clipboard

Problem with `withProfile`

Open Sir-J opened this issue 6 years ago • 1 comments

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?

Sir-J avatar Aug 01 '18 10:08 Sir-J

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;
}

Sir-J avatar Aug 01 '18 12:08 Sir-J