Метод MetadataWorkspaceExtensions.IsJoinTable

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

Пространство имен: 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
[ExtensionAttribute] 
public static bool IsJoinTable (
    EntityType entityType,
    StoreItemCollection store
)
[ExtensionAttribute] 
public:
static bool IsJoinTable (
    EntityType^ entityType, 
    StoreItemCollection^ store
)
/** @attribute ExtensionAttribute() */ 
public static boolean IsJoinTable (
    EntityType entityType, 
    StoreItemCollection store
)
ExtensionAttribute 
public static function IsJoinTable (
    entityType : EntityType, 
    store : StoreItemCollection
) : boolean

Параметры

  • entityType
    An entity type in the storage model.
  • store
    An in-memory collection of storage model metadata.

Возвращаемое значение

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.

Замечания

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

Многопоточное использование

Все общие статические члены (Shared в Visual Basic) можно использовать в потокобезопасных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Платформы

Платформы разработки

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 и Windows 2000

Целевые платформы

См. также

Справочник

MetadataWorkspaceExtensions - класс
Члены MetadataWorkspaceExtensions
Microsoft.Data.Entity.Design.DatabaseGeneration - пространство имен

Другие ресурсы

How to: Generate a Database from a Conceptual Model
Windows Workflow Foundation