EntityStates 枚举

定义

表示标识由 DataServiceContext 跟踪的实体的状态的枚举。Represents the enumeration that identifies the state of an entity being tracked by the DataServiceContext.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class EntityStates
[System.Flags]
public enum EntityStates
type EntityStates = 
Public Enum EntityStates
继承
EntityStates
属性

字段

Added 4

自最后一次调用 SaveChanges() 后添加了实体。The entity was added since the last call to SaveChanges().

Deleted 8

自最后一次调用 SaveChanges() 后删除了实体。The entity was deleted since the last call to SaveChanges().

Detached 1

自最后一次调用 SaveChanges() 后分离了实体。The entity was detached since the last call to SaveChanges().

Modified 16

自最后一次调用 SaveChanges() 时修改了实体。The entity was modified since the last call to SaveChanges().

Unchanged 2

自最后一次调用 SaveChanges() 后未更改实体。The entity is unchanged since the last call to SaveChanges().

适用于