IReadOnlyEntityType.LeastDerivedType(IReadOnlyEntityType) 方法

定義

取得指定兩者之間的最小衍生型別。

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

參數

otherEntityType
IReadOnlyEntityType

要比較的其他實體類型。

傳回

所指定兩者之間的衍生類型最少。 如果指定的實體類型不相關,則會 null 傳回 。

適用於