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
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
Automapper must accept classes with public constructors, or classes with a private constructor and a specific factory method name determined by Automapper to call and instantiate a new instance and start mapping.
As desribed in the docs we can use ConstructUsing method to call static factory methods but class signature with a private constructor causes an error.
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
Automapper must accept classes with public constructors, or classes with a private constructor and a specific factory method name determined by Automapper to call and instantiate a new instance and start mapping.
As desribed in the docs we can use ConstructUsing method to call static factory methods but class signature with a private constructor causes an error.
this is an example:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: