MetadataWorkspaceExtensions.IsJoinTable Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

We can infer that something is a join table in the SSDL if: 1. There are two associations originating from it 2. The two ends on the table are * 3. The other ends on the associations are 1 4. The number of properties in the table is equal to the sum of all the key properties on the other ends of both associations 5. All properties in the table are key properties

Namespace:  Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsJoinTable ( _
    entityType As EntityType, _
    store As StoreItemCollection _
) As Boolean
'Usage
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

Parameters

Return Value

Type: System.Boolean
true if the specified EntityType is a join table; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EntityType. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

MetadataWorkspaceExtensions Class

Microsoft.Data.Entity.Design.DatabaseGeneration Namespace