src/Misc/EFTools/EntityDesignDatabaseGeneration/MetadataWorkspaceExtensions.cs
/// <summary>
///     Gets the key properties declared directly on the EntityType within an AssociationEnd
/// </summary>
/// <param name="end">The AssociationEnd.</param>
/// <returns>The list of key properties.</returns>
Gets the key properties declared directly on the EntityType within an AssociationEnd
Gets the key properties declared directly on the EntityType within an AssociationEnd
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
        public static IEnumerable<EdmProperty> GetKeyProperties(this AssociationEndMember end)
        {
            IEnumerable<EdmProperty> keyProperties = new List<EdmProperty>();
            var entityType = end.GetEntityType();
            if (entityType != null)
            {
                keyProperties = entityType.GetKeyProperties();
            }
            return keyProperties;
        }
[ SuppressMessage ( " " , " " ) ] public static IEnumerable < EdmProperty > GetKeyProperties ( this AssociationEndMember end ) { IEnumerable < EdmProperty > keyProperties = new List < EdmProperty > ( ) ; var entityType = end . GetEntityType ( ) ; if ( entityType != null ) { keyProperties = entityType . GetKeyProperties ( ) ; } return keyProperties ; }
Gets the key properties declared directly on the EntityType within an AssociationEnd
Gets the key properties declared directly on the EntityType within an AssociationEnd
The list of key properties.
The list of key properties .
AssociationEndMember
this
end
None