다음을 통해 공유


EntityEntry<TEntity>.Collection 메서드

정의

오버로드

Collection<TProperty>(INavigationBase)

이 엔터티를 다른 엔터티의 컬렉션에 연결하는 컬렉션 탐색 속성에 대한 변경 내용 추적 및 로드 정보에 대한 액세스를 제공합니다.

Collection<TProperty>(Expression<Func<TEntity,IEnumerable<TProperty>>>)

이 엔터티를 다른 엔터티의 컬렉션에 연결하는 컬렉션 탐색 속성에 대한 변경 내용 추적 및 로드 정보에 대한 액세스를 제공합니다.

Collection<TProperty>(String)

이 엔터티를 다른 엔터티의 컬렉션에 연결하는 컬렉션 탐색 속성에 대한 변경 내용 추적 및 로드 정보에 대한 액세스를 제공합니다.

Collection<TProperty>(INavigationBase)

이 엔터티를 다른 엔터티의 컬렉션에 연결하는 컬렉션 탐색 속성에 대한 변경 내용 추적 및 로드 정보에 대한 액세스를 제공합니다.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<TEntity,TProperty> Collection<TProperty> (Microsoft.EntityFrameworkCore.Metadata.INavigationBase navigation) where TProperty : class;
override this.Collection : Microsoft.EntityFrameworkCore.Metadata.INavigationBase -> Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Overridable Function Collection(Of TProperty As Class) (navigation As INavigationBase) As CollectionEntry(Of TEntity, TProperty)

형식 매개 변수

TProperty

매개 변수

navigation
INavigationBase

컬렉션 탐색입니다.

반환

CollectionEntry<TEntity,TProperty>

지정된 탐색 속성에 대한 변경 내용 추적 정보 및 작업을 노출하는 개체입니다.

설명

자세한 내용과 예제 는 EF Core에서 추적된 엔터티 액세스 및 외세 키 및 탐색 변경을 참조하세요.

적용 대상

Collection<TProperty>(Expression<Func<TEntity,IEnumerable<TProperty>>>)

이 엔터티를 다른 엔터티의 컬렉션에 연결하는 컬렉션 탐색 속성에 대한 변경 내용 추적 및 로드 정보에 대한 액세스를 제공합니다.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<TEntity,TProperty> Collection<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,System.Collections.Generic.IEnumerable<TProperty>>> propertyExpression) where TProperty : class;
override this.Collection : System.Linq.Expressions.Expression<Func<'Entity, seq<'Property>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Overridable Function Collection(Of TProperty As Class) (propertyExpression As Expression(Of Func(Of TEntity, IEnumerable(Of TProperty)))) As CollectionEntry(Of TEntity, TProperty)

형식 매개 변수

TProperty

매개 변수

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

정보 및 작업에 액세스하기 위한 컬렉션 탐색을 나타내는 람다 식입니다.

반환

CollectionEntry<TEntity,TProperty>

지정된 탐색 속성에 대한 변경 내용 추적 정보 및 작업을 노출하는 개체입니다.

설명

자세한 내용과 예제 는 EF Core에서 추적된 엔터티 액세스 및 외세 키 및 탐색 변경을 참조하세요.

적용 대상

Collection<TProperty>(String)

이 엔터티를 다른 엔터티의 컬렉션에 연결하는 컬렉션 탐색 속성에 대한 변경 내용 추적 및 로드 정보에 대한 액세스를 제공합니다.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<TEntity,TProperty> Collection<TProperty> (string propertyName) where TProperty : class;
override this.Collection : string -> Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Overridable Function Collection(Of TProperty As Class) (propertyName As String) As CollectionEntry(Of TEntity, TProperty)

형식 매개 변수

TProperty

매개 변수

propertyName
String

탐색 속성의 이름입니다.

반환

CollectionEntry<TEntity,TProperty>

지정된 탐색 속성에 대한 변경 내용 추적 정보 및 작업을 노출하는 개체입니다.

설명

자세한 내용과 예제 는 EF Core에서 추적된 엔터티 액세스 및 외세 키 및 탐색 변경을 참조하세요.

적용 대상