@ -482,7 +482,7 @@ public class BookProjector : IQueryProjector<Book, BookDto>
}
````
You don't have to write the `Select` by hand. Both [Mapperly](https://mapperly.riok.app/) and [AutoMapper](https://docs.automapper.org) can project an `IQueryable`, refer to their own documentation for it and to the [object to object mapping document](../../infrastructure/object-to-object-mapping.md) for their ABP integrations. Your existing maps are not used for the projection, a projector is always a class implementing `IQueryProjector<TSource, TDestination>`.
You don't have to write the `Select` by hand. Both [Mapperly](https://mapperly.riok.app/) and [AutoMapper](https://docs.automapper.io) can project an `IQueryable`, refer to their own documentation for it and to the [object to object mapping document](../../infrastructure/object-to-object-mapping.md) for their ABP integrations. Your existing maps are not used for the projection, a projector is always a class implementing `IQueryProjector<TSource, TDestination>`.
ABP registers the projectors by convention, you don't need to configure anything else. Implement a projector once for an entity and DTO pair, and use the `ReplaceServices` option of the `DependencyAttribute` to replace an existing one. Filters (like soft delete and multi-tenancy), sorting and paging are still applied to the query before the projection.
@ -101,9 +101,9 @@ Once you define mappings described as below, you can use the `IObjectMapper` int
### Define Mappings
AutoMapper provides multiple ways of defining mapping between classes. Refer to [its own documentation](https://docs.automapper.org) for all details.
AutoMapper provides multiple ways of defining mapping between classes. Refer to [its own documentation](https://docs.automapper.io) for all details.
One way to define object mappings is creating a [Profile](https://docs.automapper.org/en/stable/Configuration.html#profile-instances) class. Example:
One way to define object mappings is creating a [Profile](https://docs.automapper.io/en/stable/Configuration.html#profile-instances) class. Example:
````csharp
public class MyProfile : Profile
@ -132,11 +132,11 @@ public class MyModule : AbpModule
}
````
`AddMaps` registers all profile classes defined in the assembly of the given class, typically your module class. It also registers for the [attribute mapping](https://docs.automapper.org/en/stable/Attribute-mapping.html).
`AddMaps` registers all profile classes defined in the assembly of the given class, typically your module class. It also registers for the [attribute mapping](https://docs.automapper.io/en/stable/Attribute-mapping.html).
### Configuration Validation
`AddMaps` optionally takes a `bool` parameter to control the [configuration validation](https://docs.automapper.org/en/stable/Configuration-validation.html) for your [module](../architecture/modularity/basics.md):
`AddMaps` optionally takes a `bool` parameter to control the [configuration validation](https://docs.automapper.io/en/stable/Configuration-validation.html) for your [module](../architecture/modularity/basics.md):