语言

EntityEntry<TEntity>.ComplexCollection 方法

定义

重载

名称 说明
ComplexCollection<TElement>(IComplexProperty)

提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。

ComplexCollection<TElement>(Expression<Func<TEntity,IEnumerable<TElement>>>)

提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。

ComplexCollection<TElement>(String)

提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。

ComplexCollection<TElement>(IComplexProperty)

Source:
EntityEntry`.cs
Source:
EntityEntry`.cs

提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty);
override this.ComplexCollection : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (complexProperty As IComplexProperty) As ComplexCollectionEntry(Of TEntity, TElement)

类型参数

TElement

元素类型。

参数

complexProperty
IComplexProperty

用于访问其信息和操作的属性。

返回

公开给定属性的更改跟踪信息和操作的对象。

注解

有关详细信息和示例,请参阅 EF Core 中的访问跟踪实体 。

适用于

ComplexCollection<TElement>(Expression<Func<TEntity,IEnumerable<TElement>>>)

Source:
EntityEntry`.cs
Source:
EntityEntry`.cs

提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(System.Linq.Expressions.Expression<Func<TEntity,System.Collections.Generic.IEnumerable<TElement>?>> propertyExpression);
override this.ComplexCollection : System.Linq.Expressions.Expression<Func<'Entity, seq<'Element>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyExpression As Expression(Of Func(Of TEntity, IEnumerable(Of TElement)))) As ComplexCollectionEntry(Of TEntity, TElement)

类型参数

TElement

元素类型。

参数

propertyExpression
Expression<Func<TEntity,IEnumerable<TElement>>>

一个 lambda 表达式,表示用于访问其信息和操作的属性。

返回

公开给定属性的更改跟踪信息和操作的对象。

注解

有关详细信息和示例,请参阅 EF Core 中的访问跟踪实体 。

适用于

ComplexCollection<TElement>(String)

Source:
EntityEntry`.cs
Source:
EntityEntry`.cs

提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(string propertyName);
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyName As String) As ComplexCollectionEntry(Of TEntity, TElement)

类型参数

TElement

元素类型。

参数

propertyName
String

用于访问其信息和操作的属性。

返回

公开给定属性的更改跟踪信息和操作的对象。

注解

有关详细信息和示例,请参阅 EF Core 中的访问跟踪实体 。

适用于