You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`export class PageDto { @AutoMap()
public "page"!: number; @AutoMap()
public "total"!: number; @AutoMap()
public "per_page"!: number; @AutoMap()
public "total_pages"!: number;
public "data"!: T[];
}
export class Page { @AutoMap()
public page!: number; @AutoMap()
public perPage!: number; @AutoMap()
public total!: number; @AutoMap()
public totalPages!: number;
Is there an existing issue for this?
Describe the issue
When mapping attributes with names that have similar prefixes, the attributes whose names that contain more than just the prefix get skipped.
For instance, if I have a source class like this:
And a destination class like this:
And a mapping like this:
When I try to map a source object to the destination, the destination only contains the
deleted
attribute. ThedeletedBy
attribute is undefined.Models/DTOs/VMs
Mapping configuration
Steps to reproduce
No response
Expected behavior
I would expect both the
deleted
anddeletedBy
attributes to be properly mapped.Screenshots
No response
Minimum reproduction code
No response
Package
@automapper/core
@automapper/classes
@automapper/nestjs
@automapper/pojos
@automapper/mikro
@automapper/sequelize
Other package and its version
No response
AutoMapper version
8.7.6
Additional context
No response
The text was updated successfully, but these errors were encountered: