Export (0) Print
Expand All

DbEntityEntry.State Property

Entity Framework 5.0

Gets or sets the state of the entity.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

'Declaration
Public Property State As EntityState 
	Get 
	Set
'Usage
Dim instance As DbEntityEntry 
Dim value As EntityState 

value = instance.State

instance.State = value

Property Value

Type: System.Data.EntityState
The state.

Calling State on an entity in the Detached state will call DetectChanges.

Show:
© 2014 Microsoft