Skip to content

Commit 5504779

Browse files
Stoyko Stoevfilak-sap
Stoyko Stoev
authored andcommitted
documentation and changelog for inlinecount
1 parent bf8a1a9 commit 5504779

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff 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

docs/usage/querying.rst

+21
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)