CollectionEntry<TEntity,TRelatedEntity>.CurrentValue Właściwość

Definicja

Pobiera lub ustawia wartość aktualnie przypisaną do tej właściwości. Jeśli bieżąca wartość jest ustawiona przy użyciu tej właściwości, monitor zmian jest świadomy zmiany i DetectChanges() nie jest wymagany, aby kontekst wykrył zmianę.

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)

Wartość właściwości

IEnumerable<TProperty>
IEnumerable<TRelatedEntity>

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Uzyskiwanie dostępu do śledzonych jednostek w programie EF Core oraz Zmienianie kluczy obcych i nawigacji .

Dotyczy