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
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ In modern applications following Clean or Onion Architecture, mapping objects be
28
28
29
29
***Dependency Injection Integration**: Provides `AddGeneratedMappers()` for high-performance, reflection-free registration of mappers.
30
30
31
-
***Cross-Assembly Discovery**: Easily register mappers across multiple projects using the`[assembly: DiscoverMappers]` attribute.
31
+
***Cross-Assembly Discovery**: Automatically registers mappers across multiple projects. The required`[assembly: DiscoverMappers]` attribute is injected automatically by the NuGet package.
32
32
33
33
***Nested & Collection Mapping**: Automatically discovers and uses other mappers for complex, nested objects and collections.
34
34
@@ -144,7 +144,8 @@ In your `Program.cs`, call `AddGeneratedMappers()` to register all mappers. To d
144
144
// Program.cs
145
145
usingProjectR.Generated; // The namespace where registrations are generated
146
146
147
-
[assembly: DiscoverMappers] // Enable discovery of mappers in referenced projects
147
+
// Note: [assembly: DiscoverMappers] is automatically injected by the NuGet package.
148
+
// You do not need to add it manually unless you have disabled auto-discovery.
0 commit comments