语言

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 中的访问跟踪实体以及更改外键和导航。

适用于