123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
- <edmx:DataServices>
- <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Microsoft.OData.SampleService.Models.TripPin">
- <EnumType Name="PersonGender">
- <Member Name="Male" Value="0"/>
- <Member Name="Female" Value="1"/>
- <Member Name="Unknown" Value="2"/>
- </EnumType>
- <ComplexType Name="City">
- <Property Name="CountryRegion" Type="Edm.String" Nullable="false"/>
- <Property Name="Name" Type="Edm.String" Nullable="false"/>
- <Property Name="Region" Type="Edm.String" Nullable="false"/>
- </ComplexType>
- <ComplexType Name="Location" OpenType="true">
- <Property Name="Address" Type="Edm.String" Nullable="false"/>
- <Property Name="City" Type="Microsoft.OData.SampleService.Models.TripPin.City" Nullable="false"/>
- </ComplexType>
- <ComplexType Name="EventLocation" BaseType="Microsoft.OData.SampleService.Models.TripPin.Location" OpenType="true">
- <Property Name="BuildingInfo" Type="Edm.String"/>
- </ComplexType>
- <ComplexType Name="AirportLocation" BaseType="Microsoft.OData.SampleService.Models.TripPin.Location" OpenType="true">
- <Property Name="Loc" Type="Edm.GeographyPoint" Nullable="false" SRID="4326"/>
- </ComplexType>
- <EntityType Name="Photo" HasStream="true">
- <Key>
- <PropertyRef Name="Id"/>
- </Key>
- <Property Name="Id" Type="Edm.Int64" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Permissions">
- <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
- </Annotation>
- </Property>
- <Property Name="Name" Type="Edm.String"/>
- <Annotation Term="Org.OData.Core.V1.AcceptableMediaTypes">
- <Collection>
- <String>image/jpeg</String>
- </Collection>
- </Annotation>
- </EntityType>
- <EntityType Name="Person" OpenType="true">
- <Key>
- <PropertyRef Name="UserName"/>
- </Key>
- <Property Name="UserName" Type="Edm.String" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Permissions">
- <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
- </Annotation>
- </Property>
- <Property Name="FirstName" Type="Edm.String" Nullable="false"/>
- <Property Name="LastName" Type="Edm.String" Nullable="false"/>
- <Property Name="Emails" Type="Collection(Edm.String)"/>
- <Property Name="AddressInfo" Type="Collection(Microsoft.OData.SampleService.Models.TripPin.Location)"/>
- <Property Name="Gender" Type="Microsoft.OData.SampleService.Models.TripPin.PersonGender"/>
- <Property Name="Concurrency" Type="Edm.Int64" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Computed" Bool="true"/>
- </Property>
- <NavigationProperty Name="Friends" Type="Collection(Microsoft.OData.SampleService.Models.TripPin.Person)"/>
- <NavigationProperty Name="Trips" Type="Collection(Microsoft.OData.SampleService.Models.TripPin.Trip)" ContainsTarget="true"/>
- <NavigationProperty Name="Photo" Type="Microsoft.OData.SampleService.Models.TripPin.Photo"/>
- </EntityType>
- <EntityType Name="Airline">
- <Key>
- <PropertyRef Name="AirlineCode"/>
- </Key>
- <Property Name="AirlineCode" Type="Edm.String" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Permissions">
- <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
- </Annotation>
- </Property>
- <Property Name="Name" Type="Edm.String" Nullable="false"/>
- </EntityType>
- <EntityType Name="Airport">
- <Key>
- <PropertyRef Name="IcaoCode"/>
- </Key>
- <Property Name="IcaoCode" Type="Edm.String" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Permissions">
- <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
- </Annotation>
- </Property>
- <Property Name="Name" Type="Edm.String" Nullable="false"/>
- <Property Name="IataCode" Type="Edm.String" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Immutable" Bool="true"/>
- </Property>
- <Property Name="Location" Type="Microsoft.OData.SampleService.Models.TripPin.AirportLocation" Nullable="false"/>
- </EntityType>
- <EntityType Name="PlanItem">
- <Key>
- <PropertyRef Name="PlanItemId"/>
- </Key>
- <Property Name="PlanItemId" Type="Edm.Int32" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Permissions">
- <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
- </Annotation>
- </Property>
- <Property Name="ConfirmationCode" Type="Edm.String"/>
- <Property Name="StartsAt" Type="Edm.DateTimeOffset"/>
- <Property Name="EndsAt" Type="Edm.DateTimeOffset"/>
- <Property Name="Duration" Type="Edm.Duration"/>
- </EntityType>
- <EntityType Name="PublicTransportation" BaseType="Microsoft.OData.SampleService.Models.TripPin.PlanItem">
- <Property Name="SeatNumber" Type="Edm.String"/>
- </EntityType>
- <EntityType Name="Flight" BaseType="Microsoft.OData.SampleService.Models.TripPin.PublicTransportation">
- <Property Name="FlightNumber" Type="Edm.String" Nullable="false"/>
- <NavigationProperty Name="From" Type="Microsoft.OData.SampleService.Models.TripPin.Airport" Nullable="false"/>
- <NavigationProperty Name="To" Type="Microsoft.OData.SampleService.Models.TripPin.Airport" Nullable="false"/>
- <NavigationProperty Name="Airline" Type="Microsoft.OData.SampleService.Models.TripPin.Airline" Nullable="false"/>
- </EntityType>
- <EntityType Name="Event" BaseType="Microsoft.OData.SampleService.Models.TripPin.PlanItem" OpenType="true">
- <Property Name="Description" Type="Edm.String"/>
- <Property Name="OccursAt" Type="Microsoft.OData.SampleService.Models.TripPin.EventLocation" Nullable="false"/>
- </EntityType>
- <EntityType Name="Trip">
- <Key>
- <PropertyRef Name="TripId"/>
- </Key>
- <Property Name="TripId" Type="Edm.Int32" Nullable="false">
- <Annotation Term="Org.OData.Core.V1.Permissions">
- <EnumMember>Org.OData.Core.V1.Permission/Read</EnumMember>
- </Annotation>
- </Property>
- <Property Name="ShareId" Type="Edm.Guid"/>
- <Property Name="Description" Type="Edm.String"/>
- <Property Name="Name" Type="Edm.String" Nullable="false"/>
- <Property Name="Budget" Type="Edm.Single" Nullable="false">
- <Annotation Term="Org.OData.Measures.V1.ISOCurrency" String="USD"/>
- <Annotation Term="Org.OData.Measures.V1.Scale" Int="2"/>
- </Property>
- <Property Name="StartsAt" Type="Edm.DateTimeOffset" Nullable="false"/>
- <Property Name="EndsAt" Type="Edm.DateTimeOffset" Nullable="false"/>
- <Property Name="Tags" Type="Collection(Edm.String)" Nullable="false"/>
- <NavigationProperty Name="Photos" Type="Collection(Microsoft.OData.SampleService.Models.TripPin.Photo)"/>
- <NavigationProperty Name="PlanItems" Type="Collection(Microsoft.OData.SampleService.Models.TripPin.PlanItem)" ContainsTarget="true"/>
- </EntityType>
- <Function Name="GetFavoriteAirline" IsBound="true" EntitySetPath="person/Trips/PlanItems/Microsoft.OData.SampleService.Models.TripPin.Flight/Airline" IsComposable="true">
- <Parameter Name="person" Type="Microsoft.OData.SampleService.Models.TripPin.Person" Nullable="false"/>
- <ReturnType Type="Microsoft.OData.SampleService.Models.TripPin.Airline" Nullable="false"/>
- </Function>
- <Function Name="GetInvolvedPeople" IsBound="true" IsComposable="true">
- <Parameter Name="trip" Type="Microsoft.OData.SampleService.Models.TripPin.Trip" Nullable="false"/>
- <ReturnType Type="Collection(Microsoft.OData.SampleService.Models.TripPin.Person)" Nullable="false"/>
- </Function>
- <Function Name="GetFriendsTrips" IsBound="true" EntitySetPath="person/Friends/Trips" IsComposable="true">
- <Parameter Name="person" Type="Microsoft.OData.SampleService.Models.TripPin.Person" Nullable="false"/>
- <Parameter Name="userName" Type="Edm.String" Nullable="false"/>
- <ReturnType Type="Collection(Microsoft.OData.SampleService.Models.TripPin.Trip)" Nullable="false"/>
- </Function>
- <Function Name="GetNearestAirport" IsComposable="true">
- <Parameter Name="lat" Type="Edm.Double" Nullable="false"/>
- <Parameter Name="lon" Type="Edm.Double" Nullable="false"/>
- <ReturnType Type="Microsoft.OData.SampleService.Models.TripPin.Airport" Nullable="false"/>
- </Function>
- <Action Name="ResetDataSource"/>
- <Action Name="ShareTrip" IsBound="true">
- <Parameter Name="person" Type="Microsoft.OData.SampleService.Models.TripPin.Person" Nullable="false"/>
- <Parameter Name="userName" Type="Edm.String" Nullable="false"/>
- <Parameter Name="tripId" Type="Edm.Int32" Nullable="false"/>
- </Action>
- <EntityContainer Name="DefaultContainer">
- <EntitySet Name="Photos" EntityType="Microsoft.OData.SampleService.Models.TripPin.Photo">
- <Annotation Term="Org.OData.Core.V1.ResourcePath" String="Photos"/>
- <Annotation Term="Org.OData.Capabilities.V1.SearchRestrictions">
- <Record>
- <PropertyValue Property="Searchable" Bool="true"/>
- <PropertyValue Property="UnsupportedExpressions">
- <EnumMember>Org.OData.Capabilities.V1.SearchExpressions/none</EnumMember>
- </PropertyValue>
- </Record>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.InsertRestrictions">
- <Record>
- <PropertyValue Property="Insertable" Bool="true"/>
- <PropertyValue Property="NonInsertableNavigationProperties">
- <Collection/>
- </PropertyValue>
- </Record>
- </Annotation>
- </EntitySet>
- <EntitySet Name="People" EntityType="Microsoft.OData.SampleService.Models.TripPin.Person">
- <NavigationPropertyBinding Path="Friends" Target="People"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Flight/Airline" Target="Airlines"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Flight/From" Target="Airports"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Flight/To" Target="Airports"/>
- <NavigationPropertyBinding Path="Photo" Target="Photos"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Trip/Photos" Target="Photos"/>
- <Annotation Term="Org.OData.Core.V1.OptimisticConcurrency">
- <Collection>
- <PropertyPath>Concurrency</PropertyPath>
- </Collection>
- </Annotation>
- <Annotation Term="Org.OData.Core.V1.ResourcePath" String="People"/>
- <Annotation Term="Org.OData.Capabilities.V1.NavigationRestrictions">
- <Record>
- <PropertyValue Property="Navigability">
- <EnumMember>Org.OData.Capabilities.V1.NavigationType/None</EnumMember>
- </PropertyValue>
- <PropertyValue Property="RestrictedProperties">
- <Collection>
- <Record>
- <PropertyValue Property="NavigationProperty" NavigationPropertyPath="Friends"/>
- <PropertyValue Property="Navigability">
- <EnumMember>Org.OData.Capabilities.V1.NavigationType/Recursive</EnumMember>
- </PropertyValue>
- </Record>
- </Collection>
- </PropertyValue>
- </Record>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.SearchRestrictions">
- <Record>
- <PropertyValue Property="Searchable" Bool="true"/>
- <PropertyValue Property="UnsupportedExpressions">
- <EnumMember>Org.OData.Capabilities.V1.SearchExpressions/none</EnumMember>
- </PropertyValue>
- </Record>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.InsertRestrictions">
- <Record>
- <PropertyValue Property="Insertable" Bool="true"/>
- <PropertyValue Property="NonInsertableNavigationProperties">
- <Collection>
- <NavigationPropertyPath>Trips</NavigationPropertyPath>
- <NavigationPropertyPath>Friends</NavigationPropertyPath>
- </Collection>
- </PropertyValue>
- </Record>
- </Annotation>
- </EntitySet>
- <EntitySet Name="Airlines" EntityType="Microsoft.OData.SampleService.Models.TripPin.Airline">
- <Annotation Term="Org.OData.Core.V1.ResourcePath" String="Airlines"/>
- <Annotation Term="Org.OData.Capabilities.V1.SearchRestrictions">
- <Record>
- <PropertyValue Property="Searchable" Bool="true"/>
- <PropertyValue Property="UnsupportedExpressions">
- <EnumMember>Org.OData.Capabilities.V1.SearchExpressions/none</EnumMember>
- </PropertyValue>
- </Record>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.InsertRestrictions">
- <Record>
- <PropertyValue Property="Insertable" Bool="true"/>
- <PropertyValue Property="NonInsertableNavigationProperties">
- <Collection/>
- </PropertyValue>
- </Record>
- </Annotation>
- </EntitySet>
- <EntitySet Name="Airports" EntityType="Microsoft.OData.SampleService.Models.TripPin.Airport">
- <Annotation Term="Org.OData.Core.V1.ResourcePath" String="Airports"/>
- <Annotation Term="Org.OData.Capabilities.V1.SearchRestrictions">
- <Record>
- <PropertyValue Property="Searchable" Bool="true"/>
- <PropertyValue Property="UnsupportedExpressions">
- <EnumMember>Org.OData.Capabilities.V1.SearchExpressions/none</EnumMember>
- </PropertyValue>
- </Record>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.InsertRestrictions">
- <Record>
- <PropertyValue Property="Insertable" Bool="false"/>
- <PropertyValue Property="NonInsertableNavigationProperties">
- <Collection/>
- </PropertyValue>
- </Record>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.DeleteRestrictions">
- <Record>
- <PropertyValue Property="Deletable" Bool="false"/>
- <PropertyValue Property="NonDeletableNavigationProperties">
- <Collection/>
- </PropertyValue>
- </Record>
- </Annotation>
- </EntitySet>
- <Singleton Name="Me" Type="Microsoft.OData.SampleService.Models.TripPin.Person">
- <NavigationPropertyBinding Path="Friends" Target="People"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Flight/Airline" Target="Airlines"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Flight/From" Target="Airports"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Flight/To" Target="Airports"/>
- <NavigationPropertyBinding Path="Photo" Target="Photos"/>
- <NavigationPropertyBinding Path="Microsoft.OData.SampleService.Models.TripPin.Trip/Photos" Target="Photos"/>
- <Annotation Term="Org.OData.Core.V1.ResourcePath" String="Me"/>
- </Singleton>
- <FunctionImport Name="GetNearestAirport" Function="Microsoft.OData.SampleService.Models.TripPin.GetNearestAirport" EntitySet="Airports" IncludeInServiceDocument="true">
- <Annotation Term="Org.OData.Core.V1.ResourcePath" String="Microsoft.OData.SampleService.Models.TripPin.GetNearestAirport"/>
- </FunctionImport>
- <ActionImport Name="ResetDataSource" Action="Microsoft.OData.SampleService.Models.TripPin.ResetDataSource"/>
- <Annotation Term="Org.OData.Core.V1.Description" String="TripPin service is a sample service for OData V4."/>
- </EntityContainer>
- <Annotations Target="Microsoft.OData.SampleService.Models.TripPin.DefaultContainer">
- <Annotation Term="Org.OData.Core.V1.DereferenceableIDs" Bool="true"/>
- <Annotation Term="Org.OData.Core.V1.ConventionalIDs" Bool="true"/>
- <Annotation Term="Org.OData.Capabilities.V1.ConformanceLevel">
- <EnumMember>Org.OData.Capabilities.V1.ConformanceLevelType/Advanced</EnumMember>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.SupportedFormats">
- <Collection>
- <String>application/json;odata.metadata=full;IEEE754Compatible=false;odata.streaming=true</String>
- <String>application/json;odata.metadata=minimal;IEEE754Compatible=false;odata.streaming=true</String>
- <String>application/json;odata.metadata=none;IEEE754Compatible=false;odata.streaming=true</String>
- </Collection>
- </Annotation>
- <Annotation Term="Org.OData.Capabilities.V1.AsynchronousRequestsSupported" Bool="true"/>
- <Annotation Term="Org.OData.Capabilities.V1.BatchContinueOnErrorSupported" Bool="false"/>
- <Annotation Term="Org.OData.Capabilities.V1.FilterFunctions">
- <Collection>
- <String>contains</String>
- <String>endswith</String>
- <String>startswith</String>
- <String>length</String>
- <String>indexof</String>
- <String>substring</String>
- <String>tolower</String>
- <String>toupper</String>
- <String>trim</String>
- <String>concat</String>
- <String>year</String>
- <String>month</String>
- <String>day</String>
- <String>hour</String>
- <String>minute</String>
- <String>second</String>
- <String>round</String>
- <String>floor</String>
- <String>ceiling</String>
- <String>cast</String>
- <String>isof</String>
- </Collection>
- </Annotation>
- </Annotations>
- </Schema>
- </edmx:DataServices>
- </edmx:Edmx>
|