EntityStates 枚举
表示标识由 DataServiceContext 跟踪的实体的状态的枚举。
此枚举具有可以使用其成员值位组合的 FlagsAttribute 属性。
命名空间: System.Data.Services.Client
程序集: Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)
语法
声明
<FlagsAttribute> _
Public Enumeration EntityStates
用法
Dim instance As EntityStates
[FlagsAttribute]
public enum EntityStates
[FlagsAttribute]
public enum class EntityStates
[<FlagsAttribute>]
type EntityStates
public enum EntityStates
成员
成员名称 | 说明 | |
---|---|---|
Detached | 最后一次调用 SaveChanges 时分离实体。 | |
Unchanged | 最后一次调用 SaveChanges 时不更改实体。 | |
Added | 最后一次调用 SaveChanges 时添加实体。 | |
Deleted | 最后一次调用 SaveChanges 时删除实体。 | |
Modified | 最后一次调用 SaveChanges 时修改实体。 |