Skip to content

Instantly share code, notes, and snippets.

@ODataTeam
Created June 30, 2014 08:30
Show Gist options
  • Save ODataTeam/a69de5c362873ab566ac to your computer and use it in GitHub Desktop.
Save ODataTeam/a69de5c362873ab566ac to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:Reference Uri="http://www.example.com/ReferencedModel.csdl">
<edmx:Include Namespace="SampleCode.ReferencedModel" Alias="RefModel" />
</edmx:Reference>
<edmx:DataServices>
<Schema Namespace="SampleCode.MainModel" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EntityType Name="Customer" BaseType="SampleCode.ReferencedModel.Person">
<Property Name="HomeAddress" Type="SampleCode.ReferencedModel.Address" />
</EntityType>
<EntityContainer Name="MainContainer">
<EntitySet Name="Customers" EntityType="SampleCode.MainModel.Customer" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment