Skip to content

Commit

Permalink
fix(doc): Updating getting-started default constructor strategy (#179)
Browse files Browse the repository at this point in the history
Hello,

I noticed that you changed the default constructor strategy from
"always" to "auto", so I updated the documentation

I hope that's OK for you

Have a great day
  • Loading branch information
Korbeil authored Aug 14, 2024
2 parents 5a09aa6 + 338d555 commit 2eb0671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The `Configuration` object allows you to define the following options:
The prefix to use for the generated mappers class names. It can be useful to change it you have a different AutoMapper
instance in your application and they should not conflict when mapping the same classes.

* `constructorStrategy` (default: `always`)
* `constructorStrategy` (default: `auto`)

If the generated mapper should use the constructor to instantiate the target. When set to auto, AutoMapper will use the
constructor if all mandatory properties are present in the source object, otherwise it will not use it.
Expand Down

0 comments on commit 2eb0671

Please sign in to comment.