'Declaration Public Enum EntityState Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum EntityState : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'Declaration Public Enum EntityState Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum EntityState : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Added | This object is new, has been added to the context, but the DataContext.SubmitChanges method hasn't been called since adding this object to the context. |
Deleted | The object has been deleted from the context. After the changes are saved, the object state changes to Detached. |
Detached | The object exists, but it is not being tracked. It can be in this state immediately after it is created (before being added to the context). |
Modified | One of the entity properties was modified and the DataContext.SubmitChanges method hasn't been called to save these changes to a database. |
Unchanged | The object has not been modified since it was attached to the context or since the last DataContext.SubmitChanges method call. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2