語言

ComplexCollectionEntry<TEntity,TElement>.CurrentValue 屬性

定義

取得或設定目前分配給此屬性的值。 如果目前值是利用此特性設定,變更追蹤器會知道變更,且 DetectChanges() 上下文不需要它來偵測變更。

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 2, 1 })]
public virtual System.Collections.Generic.IReadOnlyList<TElement>? CurrentValue { get; set; }
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 2, 1 })>]
member this.CurrentValue : System.Collections.Generic.IReadOnlyList<'Element> with get, set
Public Overridable Property CurrentValue As IReadOnlyList(Of TElement)

屬性值

IReadOnlyList<TElement>
屬性

備註

更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」及 「變更外鍵與導覽 」。

適用於