MutableEntityTypeExtensions.RootType(IMutableEntityType) 方法

定義

警告

Use GetRootType

取得指定實體類型的根基底類型。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
[System.Obsolete("Use GetRootType")]
public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
[<System.Obsolete("Use GetRootType")>]
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function RootType (entityType As IMutableEntityType) As IMutableEntityType

參數

entityType
IMutableEntityType

要尋找根目錄的型別。

傳回

根基底類型。 如果指定的實體類型不是衍生類型,則會傳回相同的實體類型。

屬性

適用於