2.1.3.16 Entity

Target namespace: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog

Referenced by: Entities

A complex type that specifies an Entity.

Child Elements:

LocalizedDisplayNames: A LocalizedDisplayNames element (section 2.1.3.28) that specifies the localized names of the Model.

Properties: A Properties element (section 2.1.3.39) that specifies the Properties of the Model.

AccessControlList: An AccessControlList element (section 2.1.3.2) that specifies the access control list (ACL) of the Model.

Identifiers: An Identifiers element (section 2.1.3.20) that specifies the Identifiers of the Entity.

Methods: A Methods element (section 2.1.3.33) that specifies the Methods of the Entity.

AssociationGroups: An AssociationGroups element (section 2.1.3.9) that specifies the AssociationGroups of the Entity.

Actions: An Actions element (section 2.1.3.6) that specifies the Actions of the Entity.

Attributes:

Namespace: A NameString attribute (section 2.1.4.9) that specifies the namespace of the Entity.

Version: A VersionString attribute (section 2.1.4.18) that specifies the version number of the Entity.

EstimatedInstanceCount: An InstanceCount attribute (section 2.1.4.5) that specifies the estimated number of EntityInstances contained by the line-of-business (LOB) system.

DefaultOperationMode: An OperationModeType attribute (section 2.1.4.10) that specifies the default behavior when interacting with a LOB system in an implementation-specific manner while creating, deleting, updating or reading EntityInstance data of the Entity.

Name: A NameString attribute (section 2.1.4.9) that specifies the name of the Model.

DefaultDisplayName: A NameString attribute that specifies the default display name of the Model.

IsCached: An xs:boolean attribute that specifies whether the Model is used frequently. This MAY<12> be used as a recommendation as to whether to cache the Model. This attribute MUST be set to one of the values listed in the following table.

Value

Description

False

The Model is infrequently used.

True

The Model is frequently used.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xs:complexType name="Entity">
   <xs:complexContent>
     <xs:extension base="bdc:IndividuallySecurableMetadataObject">
       <xs:sequence>
         <xs:element name="Identifiers" type="bdc:Identifiers" minOccurs="0">
           <xs:unique name="IdentifierNameKey">
             <xs:selector xpath="*"/>
             <xs:field xpath="@Name"/>
           </xs:unique>
         </xs:element>
         <xs:element name="Methods" type="bdc:Methods" minOccurs="0">
           <xs:unique name="MethodNameKey">
             <xs:selector xpath="*"/>
             <xs:field xpath="@Name"/>
           </xs:unique>
         </xs:element>
         <xs:element name="AssociationGroups" type="bdc:AssociationGroups" minOccurs="0">
           <xs:unique name="AssociationGroupNameKey">
             <xs:selector xpath="*"/>
             <xs:field xpath="@Name"/>
           </xs:unique>
         </xs:element>
         <xs:element name="Actions" type="bdc:Actions" minOccurs="0">
           <xs:unique name="ActionNameKey">
             <xs:selector xpath="*"/>
             <xs:field xpath="@Name"/>
           </xs:unique>
         </xs:element>
       </xs:sequence>
       <xs:attribute name="Namespace" type="bdc:NameString" use="required"/>
       <xs:attribute name="Version" type="bdc:VersionString" use="required"/>
       <xs:attribute name="EstimatedInstanceCount" type="bdc:InstanceCount" default="10000"/>
       <xs:attribute name="DefaultOperationMode" type="bdc:OperationModeType" default="Default" use="optional"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).