File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66
77## [ Unreleased]
88
9+ ### Added
10+ - Add inlinecount support - Stoyko Stoev
11+ - Add a ProgramError exception - Stoyko Stoev
12+
913## [ 1.6.0]
1014
1115### Added
Original file line number Diff line number Diff line change @@ -106,6 +106,16 @@ Print a count of all employees:
106106 count = northwind.entity_sets.Employees.get_entities().count().execute()
107107 print (count)
108108
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+
109119
110120 Get a count of entities via navigation property
111121-----------------------------------------------
@@ -118,6 +128,17 @@ Print a count of all orders associated with Employee 1:
118128 print (count)
119129
120130
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+
121142 Use non-standard OData URL Query parameters
122143-------------------------------------------
123144
You can’t perform that action at this time.
0 commit comments