Метод MetadataWorkspaceExtensions.GetDependentEnd

Returns the dependent end of the specified AssociationType object.

Пространство имен: Microsoft.Data.Entity.Design.DatabaseGeneration
Сборка: Microsoft.Data.Entity.Design.DatabaseGeneration (в microsoft.data.entity.design.databasegeneration.dll)

Использование

Синтаксис

'Декларация
<ExtensionAttribute> _
Public Shared Function GetDependentEnd ( _
    association As AssociationType _
) As AssociationEndMember
[ExtensionAttribute] 
public static AssociationEndMember GetDependentEnd (
    AssociationType association
)
[ExtensionAttribute] 
public:
static AssociationEndMember^ GetDependentEnd (
    AssociationType^ association
)
/** @attribute ExtensionAttribute() */ 
public static AssociationEndMember GetDependentEnd (
    AssociationType association
)
ExtensionAttribute 
public static function GetDependentEnd (
    association : AssociationType
) : AssociationEndMember

Параметры

  • association
    An association in a conceptual model.

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

The dependent end of the specified AssociationType object.

Замечания

The GetDependentEnd method applies the following rules (in order of priority) when returning the dependent end of an AssociationType object:

  1. If a referential constraint is defined on the association, the dependent end (as specified by the referential constraint) is returned.

  2. If the multiplicity of the association is one-to-one (1:1) and OnDelete="Cascade" is defined on one association end, then the other association end is returned. If OnDelete="Cascade" is not defined on either end, then the first element in the AssociationEndMembers property of the association parameter is returned.

  3. If the multiplicity of an association is one-to-many (1:*) or zero-or-one-to-many (0..1:*) the association end with multiplicity of many (*) is returned.

  4. In an association with multiplicity of zero-or-one-to-one (0..1:1), the association end with multiplicity of zero-or-one (0..1) is returned.

The GetDependentEnd 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