ObjectStateEntry.ChangeState Method (EntityState)

 

Changes state of the entry to the specified EntityState value.

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

public abstract void ChangeState(
	EntityState state
)

Parameters

state
Type: System.Data.Entity.EntityState

The EntityState value to set for the State property of the entry.