@tjc-group/odata-v2-service-metadata
Version:
Limited version of OData metadata response for OData V2, based on odata-v4-service-metadata
45 lines • 1.77 kB
text/xml
<edmx:Edmx
xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0">
<m:DataServices
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" DataServiceVersion="2.0">
<Schema
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="JayData.Entities">
<EntityType Name="Article">
<Key>
<PropertyRef Name="Id"/>
<PropertyRef Name="Id2"/>
</Key>
<Property Name="Id" Type="Edm.Int32"/>
<Property Name="Id2" Type="Edm.Int32"/>
<Property Name="Title" Type="Edm.String"/>
<Property Name="Body" Type="Edm.String"/>
</EntityType>
<EntityType Name="Category">
<Key>
<PropertyRef Name="Id"/>
</Key>
<Property Name="Id" Type="Edm.Int32"/>
<Property Name="Title" Type="Edm.String"/>
</EntityType>
<EntityContainer Name="Container">
<EntitySet Name="Articles" EntityType="JayData.Entities.Article"/>
<EntitySet Name="Categories" EntityType="JayData.Entities.Category"/>
</EntityContainer>
<Annotations Target="JayData.Entities.Article">
<Annotation Term="UI.DisplayName" String="Arts"/>
</Annotations>
<Annotations Target="JayData.Entities.Article/Id">
<Annotation Term="UI.ReadOnly" String="true"/>
</Annotations>
<Annotations Target="JayData.Entities.Article/Title">
<Annotation Term="UI.DisplayName" String="Article Title"/>
</Annotations>
<Annotations Target="JayData.Entities.Category/Id">
<Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
</Annotations>
</Schema>
</m:DataServices>
</edmx:Edmx>