ObjectStateEntry.SetModifiedProperty Method (String)

 

Marks the specified property as modified.

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

public abstract void SetModifiedProperty(
	string propertyName
)

Parameters

propertyName
Type: System.String

The name of the property.

Exception Condition
InvalidOperationException

If State is not Modified or Unchanged