CollectionEntry<TEntity,TRelatedEntity>.CurrentValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Collections.Generic.IEnumerable<TProperty> CurrentValue { get; set; }
public virtual System.Collections.Generic.IEnumerable<TRelatedEntity> CurrentValue { get; set; }
public virtual System.Collections.Generic.IEnumerable<TRelatedEntity>? CurrentValue { get; set; }
member this.CurrentValue : seq<'Property (requires 'Property : null)> with get, set
member this.CurrentValue : seq<'RelatedEntity (requires 'RelatedEntity : null)> with get, set
Public Overridable Property CurrentValue As IEnumerable(Of TProperty)
Public Overridable Property CurrentValue As IEnumerable(Of TRelatedEntity)
Property Value
Remarks
See Accessing tracked entities in EF Core and Changing foreign keys and navigations for more information and examples.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för