I want to be able to tell if there is any unsaved data in an entity framework context. I have figured out how to use the ObjectStateManager to check the states of existing entities, but there are two issues I have with this.
I have been unable to find an answer to this in my msdn searches, so I was hoping someone here would be able to clue me in.
Thanks in advance.
var addedStateEntries = Context
.ObjectStateManager
.GetObjectStateEntries(EntityState.Added);