EntityStates Enum

Definition

Represents the enumeration that identifies the state of an entity being tracked by the DataServiceContext.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum EntityStates
Inheritance
EntityStates
Attributes

Fields

Name Value Description
Detached 1

The entity was detached since the last call to SaveChanges().

Unchanged 2

The entity is unchanged since the last call to SaveChanges().

Added 4

The entity was added since the last call to SaveChanges().

Deleted 8

The entity was deleted since the last call to SaveChanges().

Modified 16

The entity was modified since the last call to SaveChanges().

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1