Reputation:
Can someone explain what is the difference between those two? When is it better to use each of these methods and why?
Upvotes: 2
Views: 2222
Reputation: 2354
SaveChanges
it's deleted from the dbDbContext
change tracker so whatever you do with the entity DbContext
doesn't notice. So when you do SaveChanges
nothing happens with this entityUpvotes: 2