2.1.6 PropertyRef

PropertyRef element refers to a declared property of an EntityType.

The following is an example of PropertyRef.

    <PropertyRef Name="CustomerId" />

The following rules apply to the PropertyRef element:

  • PropertyRef can contain any number of AnnotationAttribute attributes. The full names of the AnnotationAttribute attributes MUST NOT collide.

  • PropertyRef MUST define the Name attribute. The Name attribute refers to the name of a Property defined in the declaring EntityType.

  • In CSDL 2.0 and CSDL 3.0, PropertyRef can contain any number of AnnotationElement elements.

Graphic representation in table format of the rules that apply to the PropertyRef element.

All child elements are to appear in the order indicated.