Skip to content

Instantly share code, notes, and snippets.

@ODataTeam
Created June 30, 2014 08:29
Show Gist options
  • Save ODataTeam/92759b53832a5ee17b16 to your computer and use it in GitHub Desktop.
Save ODataTeam/92759b53832a5ee17b16 to your computer and use it in GitHub Desktop.
<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="SampleCode.ReferencedModel">
<ComplexType Name="Address">
<Property Type="Edm.String" Name="Street" Nullable="false"/>
<Property Type="Edm.String" Name="City" Nullable="false"/>
<Property Type="Edm.String" Name="PostalCode" Nullable="false"/>
</ComplexType>
<EntityType Name="Person">
<Key>
<PropertyRef Name="ID"/>
</Key>
<Property Type="Edm.Int32" Name="ID" Nullable="false"/>
<Property Type="Edm.String" Name="Name" Nullable="false"/>
</EntityType>
<Function Name="GetName" IsBound="true">
<Parameter Name="targetPerson" Type="SampleCode.ReferencedModel.Person" Nullable="false"/>
<ReturnType Type="Edm.String" Nullable="false"/>
</Function>
<EntityContainer Name="ReferencedContainer">
<EntitySet Name="People" EntityType="SampleCode.ReferencedModel.Person" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment