Метод MetadataWorkspaceExtensions.GetDependentProperty

Returns the property on the dependent end of the specified referential constraint that corresponds to the property on the principal end.

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

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

Синтаксис

'Декларация
<ExtensionAttribute> _
Public Shared Function GetDependentProperty ( _
    property As EdmProperty, _
    refConstraint As ReferentialConstraint _
) As EdmProperty
[ExtensionAttribute] 
public static EdmProperty GetDependentProperty (
    EdmProperty property,
    ReferentialConstraint refConstraint
)
[ExtensionAttribute] 
public:
static EdmProperty^ GetDependentProperty (
    EdmProperty^ property, 
    ReferentialConstraint^ refConstraint
)
/** @attribute ExtensionAttribute() */ 
public static EdmProperty GetDependentProperty (
    EdmProperty property, 
    ReferentialConstraint refConstraint
)
ExtensionAttribute 
public static function GetDependentProperty (
    property : EdmProperty, 
    refConstraint : ReferentialConstraint
) : EdmProperty

Параметры

  • property
    The property on the principal end of the specified referential constraint.
  • refConstraint
    A referential constraint in a conceptual model.

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

The property on the dependent end of the specified referential constraint that corresponds to the property on the principal end.

Пример

Consider the following referential constraint that is defined in a conceptual model:

<ReferentialConstraint>
     <Principal Role="DiscontinuedProduct">
          <PropertyRef Name="ProductId" />
          <PropertyRef Name="ProductName" />
     </Principal>
     <Dependent Role="DiscontinuedItem">
          <PropertyRef Name="ItemId" />
          <PropertyRef Name="ItemName" />
     </Dependent>
</ReferentialConstraint>

If the ProductName property were passed to the GetDependentProperty method, the ItemName property would be returned.

Замечания

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

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

Change History

См. также

Справочник

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

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

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