ReferenceEntry<TEntity,TProperty>.CurrentValue Property

Definition

Gets or sets the value currently assigned to this property. If the current value is set using this property, the change tracker is aware of the change and DetectChanges() is not required for the context to detect the change.

public virtual TProperty CurrentValue { get; set; }
public virtual TProperty? CurrentValue { get; set; }
member this.CurrentValue : 'Property with get, set
Public Overridable Property CurrentValue As TProperty

Property Value

TProperty

Remarks

See Accessing tracked entities in EF Core and Changing foreign keys and navigations for more information and examples.

Applies to