odata_client_codegen 0.1.0

Strongly-typed OData client code generation
Documentation
<!-- https://services.odata.org/V4/TripPinService/$metadata -->
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0"
    xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
    <edmx:DataServices>
        <Schema Namespace="Microsoft.OData.SampleService.Models.TripPin"
            xmlns="http://docs.oasis-open.org/odata/ns/edm">
            <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" />
                <Property Name="Name" Type="Edm.String" />
            </EntityType>
            <EntityType Name="Person" OpenType="true">
                <Key>
                    <PropertyRef Name="UserName" />
                </Key>
                <Property Name="UserName" Type="Edm.String" Nullable="false" />
                <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" />
                <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" />
                <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" />
                <Property Name="Name" Type="Edm.String" Nullable="false" />
                <Property Name="IataCode" Type="Edm.String" Nullable="false" />
                <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" />
                <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" />
                <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" />
                <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>
            <EntityContainer Name="DefaultContainer">
                <EntitySet Name="Photos" EntityType="Microsoft.OData.SampleService.Models.TripPin.Photo" />
                <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" />
                </EntitySet>
                <EntitySet Name="Airlines" EntityType="Microsoft.OData.SampleService.Models.TripPin.Airline" />
                <EntitySet Name="Airports" EntityType="Microsoft.OData.SampleService.Models.TripPin.Airport" />
                <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" />
                </Singleton>
            </EntityContainer>
        </Schema>
    </edmx:DataServices>
</edmx:Edmx>