ComplexCollectionEntry<TEntity,TElement>.CurrentValue 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置当前分配给此属性的值。 如果使用此属性设置当前值,则更改跟踪器知道更改, 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 中的访问跟踪实体以及更改外键和导航。