> For the complete documentation index, see [llms.txt](https://dynamic-mapper.gitbook.io/dynamic-mapper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dynamic-mapper.gitbook.io/dynamic-mapper/profiles.md).

# Profiles

You can organize your mapping with profiles. Simply extend `Profile` and defined your configuration inside the constructor. Custom profiles need to be registered to the mapper configuration.

```typescript
import { Profile, MappingProfile } from '@dynamic-mapper/mapper';

class CustomerProfile extends Profile {
    static readonly DtoToDomain = new MappingProfile<CustomerDto, Customer>();

    constructor() {
        this.createMap(CustomerProfile.DtoToDomain, {
            fullName: opt => opt.ignore()
        });
    }
}
```

Later register profiles to the mapper configuration.

```typescript
const config = new MapperConfiguration(cfg => {
    cfg.addProfile(new CustomerProfile());
});
```
