File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Adding equivalence to objects is done with EqualityComparison extended from the
2424 cfg.CreateMap<OrderItemDTO, OrderItem>().EqualityComparison((odto, o) => odto.ID == o.ID);
2525Mapping OrderDTO back to Order will compare Order items list based on if their ID's match
2626
27- Mapper.Map<OrderDTO[], Order[] >(orderDtos, orders);
27+ Mapper.Map<List< OrderDTO>,List< Order> >(orderDtos, orders);
2828If ID's match will map OrderDTO to Order
2929
3030If OrderDTO exists and Order doesn't add to collection
@@ -71,4 +71,4 @@ On Nuget
7171 PM> Install-Package AutoMapper.Collection.EntityFramework
7272Also have AutoMapper.LinqToSQL
7373
74- PM> Install-Package AutoMapper.Collection.LinqToSQL
74+ PM> Install-Package AutoMapper.Collection.LinqToSQL
You can’t perform that action at this time.
0 commit comments