MetadataWorkspaceExtensions.GetRootOrSelf メソッド
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
基本型がない場合は、この EntityType を返します。 基本型がある場合は、最上位の基本型を返します。
名前空間: Microsoft.Data.Entity.Design.DatabaseGeneration
アセンブリ: Microsoft.Data.Entity.Design.DatabaseGeneration (Microsoft.Data.Entity.Design.DatabaseGeneration.dll 内)
構文
'宣言
<ExtensionAttribute> _
Public Shared Function GetRootOrSelf ( _
entityType As EntityType _
) As EntityType
'使用
Dim entityType As EntityType
Dim returnValue As EntityType
returnValue = entityType.GetRootOrSelf()
public static EntityType GetRootOrSelf(
this EntityType entityType
)
[ExtensionAttribute]
public:
static EntityType^ GetRootOrSelf(
EntityType^ entityType
)
static member GetRootOrSelf :
entityType:EntityType -> EntityType
public static function GetRootOrSelf(
entityType : EntityType
) : EntityType
パラメーター
- entityType
型 : System.Data.Entity.Core.Metadata.Edm.EntityType
EntityType。
戻り値
型 : System.Data.Entity.Core.Metadata.Edm.EntityType
最上位の基本型。
使用上の注意
Visual Basic および Visual C# では、このメソッドを、EntityType 型のオブジェクトのインスタンス メソッドとして呼び出すことができます。インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.113)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.113)」を参照してください。