ConventionEntityTypeExtensions.RootType(IConventionEntityType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use GetRootType
取得指定實體類型的根基底類型。
[System.Obsolete("Use GetRootType")]
public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
[<System.Obsolete("Use GetRootType")>]
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
<Extension()>
Public Function RootType (entityType As IConventionEntityType) As IConventionEntityType
參數
- entityType
- IConventionEntityType
要尋找根目錄的型別。
傳回
根基底類型。 如果指定的實體類型不是衍生類型,則會傳回相同的實體類型。
- 屬性