We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d298c3 commit 5c24d4eCopy full SHA for 5c24d4e
1 file changed
README.md
@@ -45,9 +45,9 @@ Automapper.Collections.EntityFramework does that as well through extension metho
45
46
Translate equality between dto and EF object to an expression of just the EF using the dto's values as constants.
47
48
- dbContext.Orders.Persist<OrderDTO>().InsertOrUpdate(newOrderDto);
49
- dbContext.Orders.Persist<OrderDTO>().InsertOrUpdate(existingOrderDto);
50
- dbContext.Orders.Persist<OrderDTO>().Remove(deletedOrderDto);
+ dbContext.Orders.Persist().InsertOrUpdate<OrderDTO>(newOrderDto);
+ dbContext.Orders.Persist().InsertOrUpdate<OrderDTO>(existingOrderDto);
+ dbContext.Orders.Persist().Remove<OrderDTO>(deletedOrderDto);
51
dbContext.SubmitChanges();
52
Persist doesn't call submit changes automatically
53
0 commit comments