Reputation: 1782
How to add object to a collection so that after .SaveChanges() it hasn't inserted/updated?
Upvotes: 0
Views: 377
Reputation: 126547
Use Attach instead of Add.
Attach
Add
Upvotes: 2