MetadataWorkspaceExtensions.IsJoinTable メソッド
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
以下の場合は、SSDL の結合テーブルであると推論できます。1. そのテーブルから生じた 2 つのアソシエーションがある。2. テーブルの 2 つの End が * である。3. アソシエーションの一方の End が 1 である。4. テーブルのプロパティ数が、両方のアソシエーションの一方の End にあるすべてのキー プロパティの合計と同じである。5. テーブルのすべてのプロパティがキー プロパティである。
名前空間: Microsoft.Data.Entity.Design.DatabaseGeneration
アセンブリ: Microsoft.Data.Entity.Design.DatabaseGeneration (Microsoft.Data.Entity.Design.DatabaseGeneration.dll 内)
構文
'宣言
<ExtensionAttribute> _
Public Shared Function IsJoinTable ( _
entityType As EntityType, _
store As StoreItemCollection _
) As Boolean
'使用
Dim entityType As EntityType
Dim store As StoreItemCollection
Dim returnValue As Boolean
returnValue = entityType.IsJoinTable(store)
public static bool IsJoinTable(
this EntityType entityType,
StoreItemCollection store
)
[ExtensionAttribute]
public:
static bool IsJoinTable(
EntityType^ entityType,
StoreItemCollection^ store
)
static member IsJoinTable :
entityType:EntityType *
store:StoreItemCollection -> bool
public static function IsJoinTable(
entityType : EntityType,
store : StoreItemCollection
) : boolean
パラメーター
- entityType
型 : System.Data.Entity.Core.Metadata.Edm.EntityType
テスト対象の EntityType。
- store
型 : System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
EntityType を含む StoreItemCollection。
戻り値
型 : System.Boolean
指定した EntityType が結合テーブルの場合は true、それ以外の場合は false。
使用上の注意
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)」を参照してください。