src/Misc/EFTools/EntityDesignDatabaseGeneration/MetadataWorkspaceExtensions.cs
/// <summary>
///     Gets the key properties declared directly on the EntityType
/// </summary>
/// <param name="entityType">The EntityType.</param>
/// <returns>The list of key properties.</returns>
Gets the key properties declared directly on the EntityType
Gets the key properties declared directly on the EntityType
public static IEnumerable<EdmProperty> GetKeyProperties(this EntityType entityType)
        {
            foreach (var keyMember in entityType.KeyMembers)
            {
                var property = keyMember as EdmProperty;
                if (property != null)
                {
                    yield return property;
                }
            }
        }
public static IEnumerable < EdmProperty > GetKeyProperties ( this EntityType entityType ) { foreach ( var keyMember in entityType . KeyMembers ) { var property = keyMember as EdmProperty ; if ( property != null ) { yield return property ; } } }
Gets the key properties declared directly on the EntityType
Gets the key properties declared directly on the EntityType
The list of key properties.
The list of key properties .
EntityType
this
entityType
None