IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the closest entity type that is a parent of both given entity types. If one of the given entities is
a parent of the other, that parent is returned. Returns null
if the two entity types aren't
in the same hierarchy.
public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? FindClosestCommonParent (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType otherEntityType);
abstract member FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Public Overridable Function FindClosestCommonParent (otherEntityType As IReadOnlyEntityType) As IReadOnlyEntityType
Parameters
- otherEntityType
- IReadOnlyEntityType
Another entity type.
Returns
The closest common parent of this entity type and otherEntityType
,
or null
if they have not common parent.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework