How to add object to a collection so that after .SaveChanges() it hasn't inser开发者_如何学JAVAted/updated?
Use Attach
instead of Add
.
How to add object to a collection so that after .SaveChanges() it hasn't inser开发者_如何学JAVAted/updated?
Use Attach
instead of Add
.
精彩评论