Freigeben über


2.1.31 ValueTerm

A ValueTerm element is used to define a value term in Entity Data Model (EDM).

The following is an example of a ValueTerm element.

 <ValueTerm Name="Title" Type="Edm.String">

The following rules apply to the ValueTerm element:

  • The ValueTerm element appears under the Schema element.

  • The ValueTerm element has a Name attribute that is of type SimpleIdentifier. The Name of a ValueTerm has to be unique across all named elements that are defined in the same namespace.

  • The ValueTerm element MUST have a Type attribute. Type is of the type ComplexType, primitive type, or EnumType, or a collection of ComplexType or primitive types.

  • The ValueTerm element can have a DefaultValue attribute to provide a value for the ValueTerm if the term is applied but has no value specified.