We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 346e431 + 9d9f211 commit d3f06c8Copy full SHA for d3f06c8
1 file changed
README.md
@@ -71,10 +71,13 @@ class Program
71
}
72
```
73
74
-## Mapping collections other than `List<T>`
+### Mapping collections other than `List<T>`
75
```cs
76
- cfg.CreateMap<IEnumerable<Model>, ICollection<Entity>>()
77
- .UsingCollectionConverter((Model m) => m.Id, (Entity e) => e.Id);
+var config = new MapperConfiguration(cfg =>
+{
78
+ cfg.CreateMap<IEnumerable<Model>, ICollection<Entity>>()
79
+ .UsingCollectionConverter((Model m) => m.Id, (Entity e) => e.Id);
80
+});
81
82
83
## Using with [Mapster](https://github.com/eswann/Mapster)
0 commit comments