File tree Expand file tree Collapse file tree 3 files changed +392
-0
lines changed
tests/__snapshots__/Operation Expand file tree Collapse file tree 3 files changed +392
-0
lines changed Original file line number Diff line number Diff line change 10
10
<Schema xmlns =" http://docs.oasis-open.org/odata/ns/edm" Namespace =" com.example.odata" >
11
11
<EntityContainer Name =" DefaultContainer" >
12
12
<EntitySet Name =" Users" EntityType =" com.example.odata.User" >
13
+ <NavigationPropertyBinding Path =" orders" Target =" Orders" />
13
14
<Annotation Term =" Org.OData.Capabilities.V1.CountRestrictions" >
14
15
<Record >
15
16
<PropertyValue Property =" Countable" Bool =" true" />
73
74
</EntitySet >
74
75
<FunctionImport Name =" function1" Function =" com.example.odata.function1" />
75
76
<EntitySet Name =" Orders" EntityType =" com.example.odata.Order" >
77
+ <NavigationPropertyBinding Path =" user" Target =" Users" />
76
78
<Annotation Term =" Org.OData.Capabilities.V1.CountRestrictions" >
77
79
<Record >
78
80
<PropertyValue Property =" Countable" Bool =" true" />
143
145
<Property Name =" id" Type =" Edm.Int64" Nullable =" false" >
144
146
<Annotation Term =" Org.OData.Core.V1.Computed" Bool =" true" />
145
147
</Property >
148
+ <NavigationProperty Name =" orders" Type =" Collection(com.example.odata.Order)" Nullable =" true" />
146
149
</EntityType >
147
150
<EntityType Name =" Order" >
148
151
<Key >
151
154
<Property Name =" id" Type =" Edm.Int64" Nullable =" false" >
152
155
<Annotation Term =" Org.OData.Core.V1.Computed" Bool =" true" />
153
156
</Property >
157
+ <NavigationProperty Name =" user" Type =" com.example.odata.User" Nullable =" true" />
154
158
</EntityType >
155
159
<Function Name =" function1" IsBound =" false" >
156
160
<Parameter Name =" param" Type =" Edm.String" Nullable =" false" />
Original file line number Diff line number Diff line change 21
21
"$Kind" : " EntityContainer" ,
22
22
"Users" : {
23
23
"$EntityType" : " com.example.odata.User" ,
24
+ "$NavigationPropertyBinding" : {
25
+ "orders" : " Orders"
26
+ },
24
27
"@Org.OData.Capabilities.V1.CountRestrictions" : {
25
28
"Countable" : true
26
29
},
65
68
},
66
69
"Orders" : {
67
70
"$EntityType" : " com.example.odata.Order" ,
71
+ "$NavigationPropertyBinding" : {
72
+ "user" : " Users"
73
+ },
68
74
"@Org.OData.Capabilities.V1.CountRestrictions" : {
69
75
"Countable" : true
70
76
},
154
160
"$Type" : " Edm.Int64" ,
155
161
"$Nullable" : false ,
156
162
"@Org.OData.Core.V1.Computed" : true
163
+ },
164
+ "orders" : {
165
+ "$Collection" : true ,
166
+ "$Type" : " com.example.odata.Order" ,
167
+ "$Nullable" : true
157
168
}
158
169
},
159
170
"Order" : {
165
176
"$Type" : " Edm.Int64" ,
166
177
"$Nullable" : false ,
167
178
"@Org.OData.Core.V1.Computed" : true
179
+ },
180
+ "user" : {
181
+ "$Collection" : false ,
182
+ "$Type" : " com.example.odata.User" ,
183
+ "$Nullable" : true
168
184
}
169
185
},
170
186
"function1" : {
You can’t perform that action at this time.
0 commit comments