Hi
Sorry to ask such a general question: what can cause EF to insert records but not update ?
I face a strange situation where i change an entity and when i call SaveChanges(), the changes are not committed in the DB. thanks Jon
Hi
Sorry to ask such a general question: what can cause EF to insert records but not update ?
I face a strange situation where i change an entity and when i call SaveChanges(), the changes are not committed in the DB. thanks Jon
Are you keeping the ObjectContext alive for the entire lifetime of your entities? If not, when you re-attach the entities to a new ObjectContext for saving, the changes made may not be reflected and the entities may not be considered dirty.