MetadataWorkspaceExtensions.GetKeyProperties Method

 

Returns the key properties of an entity type.

Namespace:   Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetKeyProperties(AssociationEndMember)

Gets the key properties declared directly on the EntityType within an AssociationEnd

System_CAPS_pubmethodSystem_CAPS_staticGetKeyProperties(EntityType)

Gets the key properties declared directly on the EntityType


MetadataWorkspaceExtensions.GetKeyProperties Method (AssociationEndMember)

Gets the key properties declared directly on the EntityType within an AssociationEnd

[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static IEnumerable<EdmProperty> GetKeyProperties(
	this AssociationEndMember end
)

Parameters

end
Type: System.Data.Entity.Core.Metadata.Edm.AssociationEndMember

The AssociationEnd.

Return Value

Type: System.Collections.Generic.IEnumerable<EdmProperty>

The list of key properties.


MetadataWorkspaceExtensions.GetKeyProperties Method (EntityType)

Gets the key properties declared directly on the EntityType

public static IEnumerable<EdmProperty> GetKeyProperties(
	this EntityType entityType
)

Parameters

entityType
Type: System.Data.Entity.Core.Metadata.Edm.EntityType

The EntityType.

Return Value

Type: System.Collections.Generic.IEnumerable<EdmProperty>

The list of key properties.