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 e
var addedStateEntries = Context .ObjectStateManager .GetObjectStateEntries(EntityState.Added);