MetadataWorkspaceExtensions.GetKeyProperties Method
Returns the key properties of an entity type.
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Name | Description | |
---|---|---|
![]() ![]() | GetKeyProperties(AssociationEndMember) | Gets the key properties declared directly on the EntityType within an AssociationEnd |
![]() ![]() | GetKeyProperties(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.
MetadataWorkspaceExtensions.GetKeyProperties Method (EntityType)
Gets the key properties declared directly on the EntityType
Parameters
- entityType
-
Type:
System.Data.Entity.Core.Metadata.Edm.EntityType
The EntityType.