File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ Mapping OrderDTO back to Order will compare Order items list based on if their I
2525```
2626Mapper.Map<List<OrderDTO>,List<Order>>(orderDtos, orders);
2727```
28- If ID's match will map OrderDTO to Order
28+ If ID's match, then AutoMapper will map OrderDTO to Order
2929
30- If OrderDTO exists and Order doesn't add to collection
30+ If OrderDTO exists and Order doesn't, then AutoMapper will add a new Order mappeed from OrderDTO to the collection
3131
32- If Order exists and OrderDTO doesn't remove from collection
32+ If Order exists and OrderDTO doesn't, then AutoMapper will remove Order from collection
3333
3434## Why update collection? Just recreate it
3535ORMs don't like setting the collection, so you need to add and remove from preexisting one.
@@ -85,4 +85,4 @@ PM> Install-Package AutoMapper.Collection.EntityFrameworkCore
8585#### AutoMapper Collection for LinqToSQL
8686```
8787PM> Install-Package AutoMapper.Collection.LinqToSQL
88- ```
88+ ```
You can’t perform that action at this time.
0 commit comments