Skip to content

Commit 41bf3d3

Browse files
authored
updating alternate key syntax to be in line with what AGS supports
1 parent 62502e0 commit 41bf3d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

graph/patterns/alternate-key.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@ Declare `mail` and `ssn` as alternate keys on an entity:
6363

6464
<Property Name="mail" Type="Edm.String" />
6565
<Property Name="ssn" Type="Edm.String" />
66-
<Annotation Term="Keys.AlternateKeys">
66+
<Annotation Term="OData.Community.Keys.V1.AlternateKeys">
6767
<Collection>
68-
<Record>
68+
<Record Type="OData.Community.Keys.V1.AlternateKey">
6969
<PropertyValue Property="Key">
7070
<Collection>
71-
<Record>
71+
<Record Type="OData.Community.Keys.V1.PropertyRef">
7272
<PropertyValue Property="Name" PropertyPath="mail" />
7373
</Record>
7474
</Collection>
7575
</PropertyValue>
7676
</Record>
77-
<Record>
77+
<Record Type="OData.Community.Keys.V1.AlternateKey">
7878
<PropertyValue Property="Key">
7979
<Collection>
80-
<Record>
80+
<Record Type="OData.Community.Keys.V1.PropertyRef">
8181
<PropertyValue Property="Name" PropertyPath="ssn" />
8282
</Record>
8383
</Collection>

0 commit comments

Comments
 (0)