LinqConnect Documentation
Devart.Data.Linq Namespace / EntityState Enumeration

In This Topic
    EntityState Enumeration
    In This Topic
    This enumeration indicates the state of an entity object.
    Syntax
    'Declaration
     
    Public Enum EntityState 
       Inherits System.Enum
       Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
    Members
    MemberDescription
    AddedThis 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.
    DeletedThe object has been deleted from the context. After the changes are saved, the object state changes to Detached.
    DetachedThe 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).
    ModifiedOne of the entity properties was modified and the DataContext.SubmitChanges method hasn't been called to save these changes to a database.
    UnchangedThe object has not been modified since it was attached to the context or since the last DataContext.SubmitChanges method call.
    Requirements

    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

    See Also