ObjectStateEntry.SetModified Method ()

 

Sets the state of the object or relationship to modify.

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

public abstract void SetModified()

Exception Condition
InvalidOperationException

If State is not Modified or Unchanged