Skip to content

Commit 09d40b7

Browse files
author
Caitlin Bales (MSFT)
committed
Add Containment test metadata file
Also added a reference to the VIPR reader
1 parent bd97092 commit 09d40b7

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
3+
<edmx:DataServices>
4+
<Schema Namespace="graph" xmlns="http://docs.oasis-open.org/odata/ns/edm">
5+
<EntityType Name="entity">
6+
<Key>
7+
<PropertyRef Name="id"/>
8+
</Key>
9+
<Property Name="id" Unicode="false" Nullable="false" Type="Edm.String"/>
10+
</EntityType>
11+
<EntityType Name="testType"></EntityType>
12+
<EntityType Name="testType2"></EntityType>
13+
<EntityType Name="testType3"></EntityType>
14+
<EntityType Name="testEntity">
15+
<NavigationProperty Name="testNav" Type="graph.testType"/>
16+
<NavigationProperty Name="testInvalidNav" Type="graph.testType2"/>
17+
<NavigationProperty Name="testExplicitNav" Type="graph.testType3"/>
18+
</EntityType>
19+
<EntityType Name="testSingleton">
20+
<NavigationProperty Name="testSingleNav" Type="graph.testType" ContainsTarget="true" />
21+
</EntityType>
22+
<EntityType Name="testSingleton2">
23+
<NavigationProperty Name="testSingleNav2" Type="graph.testType3" ContainsTarget="true" />
24+
</EntityType>
25+
<EntityContainer Name="GraphService">
26+
<Singleton Name="testSingleton" Type="graph.testSingleton"/>
27+
<Singleton Name="testSingleton2" Type="graph.testSingleton2"/>
28+
<EntitySet Name="testTypes" EntityType="graph.testType3"/>
29+
</EntityContainer>
30+
</Schema>
31+
</edmx:DataServices>
32+
</edmx:Edmx>

GraphODataTemplateWriter.Test/GraphODataTemplateWriter.Test.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
<Reference Include="Vipr.Core">
4242
<HintPath>..\..\vipr\src\Core\Vipr.Core\bin\Debug\Vipr.Core.dll</HintPath>
4343
</Reference>
44+
<Reference Include="Vipr.Reader.OData.v4">
45+
<HintPath>..\submodules\vipr\src\Readers\Vipr.Reader.OData.v4\bin\Debug\Vipr.Reader.OData.v4.dll</HintPath>
46+
</Reference>
4447
</ItemGroup>
4548
<ItemGroup>
4649
<Compile Include="*.cs" />
@@ -55,6 +58,9 @@
5558
<Name>GraphODataTemplateWriter</Name>
5659
</ProjectReference>
5760
</ItemGroup>
61+
<ItemGroup>
62+
<Content Include="Edmx\Containment.xml" />
63+
</ItemGroup>
5864
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
5965
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6066
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

0 commit comments

Comments
 (0)