Skip to content

Migrate object mapping from AutoMapper to Mapperly#25

Merged
gdlcf88 merged 1 commit into
masterfrom
gdlcf88/mapperly-migration
Jul 24, 2026
Merged

Migrate object mapping from AutoMapper to Mapperly#25
gdlcf88 merged 1 commit into
masterfrom
gdlcf88/mapperly-migration

Conversation

@gdlcf88

@gdlcf88 gdlcf88 commented Jul 23, 2026

Copy link
Copy Markdown
Member

Summary

Migrates this module's object-to-object mapping from AutoMapper to Mapperly, following the ABP AutoMapper to Mapperly migration guide.

Changes

  • Replace the Volo.Abp.AutoMapper package reference with Volo.Abp.Mapperly.
  • Swap the module dependency AbpAutoMapperModule -> AbpMapperlyModule and the registration AddAutoMapperObjectMapper -> AddMapperlyObjectMapper; drop the now-unused AbpAutoMapperOptions configuration.
  • Convert the AutoMapper Profile mappings into Mapperly MapperBase<,> mappers.
  • Build/update the aggregate roots explicitly in their CRUD application services (MapToEntity overrides plus domain Update() methods) because Mapperly cannot write protected setters or call protected constructors.

Testing

  • dotnet build succeeds with no errors.
  • dotnet test on the application tests passes.

Replace Volo.Abp.AutoMapper with Volo.Abp.Mapperly and convert the
AutoMapper profiles into Mapperly mappers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gdlcf88
gdlcf88 merged commit eb42bb2 into master Jul 24, 2026
@gdlcf88
gdlcf88 deleted the gdlcf88/mapperly-migration branch July 24, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant