MetadataWorkspaceExtensions.IsJoinTable Method

Determines whether the specified storage model entity type represents a join table in the database.

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
)
public static function IsJoinTable(
    entityType : EntityType, 
    store : StoreItemCollection
) : boolean

Parameters

Return Value

Type: System.Boolean
True if all of the following conditions are true:

  1. The specified entity type has two associations originating from it.

  2. The two association ends on the specified entity type have a multiplicity of many (*).

  3. The other ends of the two associations originating from the specified entity type each have a multiplicity of one (1).

  4. The number of properties on the specified entity type is equal to the sum of all key properties on the ends of the associations.

  5. All properties in the specified entity type are key properties.

False otherwise.

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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

The IsJoinTable() method is used by the Generate Database Wizard when generating a database from a conceptual model.

Permissions

See Also

Reference

MetadataWorkspaceExtensions Class

MetadataWorkspaceExtensions Members

Microsoft.Data.Entity.Design.DatabaseGeneration Namespace

Other Resources

How to: Generate a Database from a Conceptual Model (Entity Data Model Tools)

Windows Workflow Foundation