

There is no ObjectStateEntry instance associated with objects in the Detached state. An entity is also in this state after it has been removed from the context by calling the Detach(Object) method or if it is loaded by using a NoTracking MergeOption. An entity is in this state immediately after it has been created and before it is added to the object context. The object exists but is not being tracked. After the changes are saved, the object state changes to Detached. The object has been deleted from the object context. Objects in the Added state do not have original values in the ObjectStateEntry. After the changes are saved, the object state changes to Unchanged. The object is new, has been added to the object context, and the SaveChanges() method has not been called.


FlagsAttribute BindableTypeAttribute Fields
