File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
7
7
## [ Unreleased]
8
8
9
+ ### Added
10
+ - Add inlinecount support - Stoyko Stoev
11
+ - Add a ProgramError exception - Stoyko Stoev
12
+
9
13
## [ 1.6.0]
10
14
11
15
### Added
Original file line number Diff line number Diff line change @@ -106,6 +106,16 @@ Print a count of all employees:
106
106
count = northwind.entity_sets.Employees.get_entities().count().execute()
107
107
print (count)
108
108
109
+ Print all employees and their count:
110
+
111
+ .. code-block :: python
112
+
113
+ employees = northwind.entity_sets.Employees.get_entities().count(inline = True ).execute()
114
+ print (employees.total_count)
115
+
116
+ for employee in employees:
117
+ print (employee.EmployeeID, employee.LastName)
118
+
109
119
110
120
Get a count of entities via navigation property
111
121
-----------------------------------------------
@@ -118,6 +128,17 @@ Print a count of all orders associated with Employee 1:
118
128
print (count)
119
129
120
130
131
+ Print all orders associated with Employee 1 and their count:
132
+
133
+ .. code-block :: python
134
+
135
+ orders = northwind.entity_sets.Employees.get_entity(1 ).nav(' Orders' ).get_entities().count(inline = True ).execute()
136
+ print (orders.total_count)
137
+
138
+ for order in orders:
139
+ print (order.OrderID, order.ProductID)
140
+
141
+
121
142
Use non-standard OData URL Query parameters
122
143
-------------------------------------------
123
144
You can’t perform that action at this time.
0 commit comments