Skip to content

Commit 6d46125

Browse files
authored
Added example with MS Ext.DI
1 parent 5826a45 commit 6d46125

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Mapper.Initialize(cfg => {
88
cfg.AddExpressionMapping();
99
// Rest of your configuration
1010
});
11+
12+
// or if using the MS Ext DI:
13+
14+
services.AddAutoMapper(cfg => {
15+
cfg.AddExpressionMapping();
16+
}, /* assemblies with profiles */);
1117
```
1218

1319
## DTO Queries

0 commit comments

Comments
 (0)