다음을 통해 공유


IMutableEntityType.FindClosestCommonParent(IReadOnlyEntityType) 메서드

정의

지정된 엔터티 형식의 부모인 가장 가까운 엔터티 형식을 반환합니다. 지정된 엔터티 중 하나가 다른 엔터티의 부모인 경우 해당 부모가 반환됩니다. 두 엔터티 형식이 동일한 계층 구조에 없는 경우 를 반환 null 합니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? FindClosestCommonParent (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType otherEntityType);
abstract member FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
override this.FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Overridable Function FindClosestCommonParent (otherEntityType As IReadOnlyEntityType) As IMutableEntityType

매개 변수

otherEntityType
IReadOnlyEntityType

다른 엔터티 형식입니다.

반환

이 엔터티 형식 및 otherEntityType의 가장 가까운 공통 부모이거나 null 공통 부모가 없는 경우 입니다.

적용 대상