Метод MetadataWorkspaceExtensions.GetKeyProperties (EntityType)

Returns the key properties of the specified EntityType.

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

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

Синтаксис

'Декларация
<ExtensionAttribute> _
Public Shared Function GetKeyProperties ( _
    entityType As EntityType _
) As IEnumerable(Of EdmProperty)
[ExtensionAttribute] 
public static IEnumerable<EdmProperty> GetKeyProperties (
    EntityType entityType
)
[ExtensionAttribute] 
public:
static IEnumerable<EdmProperty^>^ GetKeyProperties (
    EntityType^ entityType
)
/** @attribute ExtensionAttribute() */ 
public static IEnumerable<EdmProperty> GetKeyProperties (
    EntityType entityType
)
ExtensionAttribute 
public static function GetKeyProperties (
    entityType : EntityType
) : IEnumerable<EdmProperty>

Параметры

  • entityType
    An entity type in the conceptual model.

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

The key properties of the specified EntityType.

Замечания

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