IMutableEntityType.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.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
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
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.