IEntityType.LeastDerivedType(IEntityType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定兩者之間的最小衍生型別。
public virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType? LeastDerivedType (Microsoft.EntityFrameworkCore.Metadata.IEntityType otherEntityType);
abstract member LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Overridable Function LeastDerivedType (otherEntityType As IEntityType) As IEntityType
參數
- otherEntityType
- IEntityType
要比較的其他實體類型。
傳回
所指定兩者之間的衍生類型最少。
如果指定的實體類型不相關,則會 null
傳回 。