MetadataWorkspaceExtensions.IsJoinTable Method (EntityType, StoreItemCollection)
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
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Parameters
- entityType
-
Type:
System.Data.Entity.Core.Metadata.Edm.EntityType
The EntityType to test.
- store
-
Type:
System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
The StoreItemCollection containing EntityType.
Return Value
Type: System.Booleantrue if the specified EntityType is a join table; otherwise, false.