Skip to content

Reference external mappings #1856

@latonz

Description

@latonz

Several APIs in Mapperly allow referencing other mappings. Currently, only mappings within the same mapper class are supported. This functionality should be extended to support referencing mappings from any mapping class using a fully qualified name, with support for "full nameof" (e.g., MyNamespace.MyMappingClass.MyMappingMethod or nameof(@MyNamespaceMyMappingClass.MyMappingMethod)).

This enhancement should apply to the following attributes:

  • MapValueAttribute.Use
  • MapPropertyAttribute.Use
  • MapPropertyFromSourceAttribute.Use
  • IncludeMappingConfigurationAttribute.Name

Rel. #1855
Follows up on: #513 and #1833

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions