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
When mapping to records, consider using only public constructors.
56
+
When mapping to records, consider using only public constructors.
57
+
58
+
## Class-Based Destination Factories
59
+
60
+
Instead of automatic constructor matching or inline `ConstructUsing` lambdas, you can implement custom constructor logic as a class. This enables reuse across multiple mappings and supports dependency injection.
61
+
62
+
This is different than `ConvertUsing` which replaces the entire mapping operation.
63
+
64
+
### Interface
65
+
66
+
`IDestinationFactory<TSource, TDestination>` is used to implement custom object construction:
Starting with 8.0 you can use `IMapper.ProjectTo`. For older versions you need to pass the configuration to the extension method ``` IQueryable.ProjectTo<T>(IConfigurationProvider) ```.
0 commit comments