From 5a6c5a0e5cf43186af8ca2bcfe79573988d36d15 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Thu, 19 Feb 2026 16:37:19 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../2026-02-19-ABP-Framework-Hidden-Magic/post.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/en/Community-Articles/2026-02-19-ABP-Framework-Hidden-Magic/post.md b/docs/en/Community-Articles/2026-02-19-ABP-Framework-Hidden-Magic/post.md index db0c1f17a6..5a9e74e19c 100644 --- a/docs/en/Community-Articles/2026-02-19-ABP-Framework-Hidden-Magic/post.md +++ b/docs/en/Community-Articles/2026-02-19-ABP-Framework-Hidden-Magic/post.md @@ -136,7 +136,7 @@ using (_dataFilter.Disable()) **The Magic:** Starting with **ABP v9.0**, new project templates use **Mapperly** instead of AutoMapper. Any class using Mapperly attributes is automatically configured. ```csharp -// Starting with ABP v9.0, new projects use Mapperly instead of AutoMapper +// Starting with ABP v10.0, new projects use Mapperly instead of AutoMapper // Inherit from MapperBase - automatically registered with IObjectMapper public partial class UserMapper : MapperBase @@ -464,8 +464,10 @@ No explicit registration needed - just add files and they're available! Add `[RequiresFeature]` to restrict access based on feature flags: ```csharp -| 9 | **Object Mapping** | Mapperly (compile-time) | Inherit from `MapperBase` / `TwoWayMapperBase` and use `[Mapper]` attribute | -public async Task DoSomethingAsync() { } +[RequiresFeature("MyApp.Features.SomeFeature")] +public async Task DoSomethingAsync() +{ +} ``` The `FeatureInterceptor` is added only when `[RequiresFeature]` attribute is present on the class or method.