MicrosoftDocs / OData-docs

Creative Commons Attribution 4.0 International
32 stars 109 forks source link

Add nested pagination docs #114

Closed KenitoInc closed 3 years ago

KenitoInc commented 4 years ago

Add sample code on how we can handle nested pagination in OData Client

Expected sample output

Person Page 1:
        Person Name: Russell
            Trips Page 1:   
                TripID: 0 - Name: $Trip in US
                TripID: 1003 - Name: $Trip in Beijing

            Trips Page 2:
                TripID: 1007 - Name: $Honeymoon

        Person Name: Scott
            Trips Page 1:
                TripID: 0 - Name: $Trip in US
                TripID: 2004 - Name: $Trip in Beijing
         .............................................
        .............................................
        .............................................

Person Page 2:
        Person Name: Marshall
            Trips Page 1:
                .............................................
                ............................................

        Person Name: Ryan
            Trips Page 1:
               .............................................
               .............................................

            Trips Page 2:
               .............................................
               .............................................
opbld33 commented 4 years ago

Docs Build status updates of commit 903ce5b:

:warning: Validation status: warnings

File Status Preview URL Details
Odata-docs/includes/appliesto-odataclient-v6.md :warning:Warning View Details
Odata-docs/includes/appliesto-odataclient-v7.md :warning:Warning View Details
Odata-docs/webapi/DeltaFeed_support.md :warning:Warning View Details
Odata-docs/includes/appliesto-webapi-v7.md :warning:Warning View Details
Odata-docs/includes/appliesto-webapi-v6.md :warning:Warning View Details
Odata-docs/webapi/getting-started.md :warning:Warning View Details
Odata-docs/webapi/include-annotations.md :warning:Warning View Details
Odata-docs/webapi/model-builder-untyped.md :warning:Warning View Details
Odata-docs/webapi/new-default-settings-v7.md :warning:Warning View Details
Odata-docs/webapi/query-by-dynamic-properties.md :warning:Warning View Details
Odata-docs/webapi/routing-abstract.md :warning:Warning View Details
Odata-docs/webapi/work-around-for-singleresult-create.md :warning:Warning View Details
Odata-docs/includes/appliesto-odatalib-v6.md :warning:Warning View Details
Odata-docs/includes/appliesto-odatalib-v7.md :warning:Warning View Details
Odata-docs/overview.md :warning:Warning View Details
Odata-docs/includes/appliesto-webapi-core-v7.md :warning:Warning View Details
Odata-docs/resources/roadmap.md :warning:Warning View Details
Odata-docs/spatial/create-instances.md :warning:Warning View Details
Odata-docs/webapi/Alternate-Key.md :warning:Warning View Details
Odata-docs/webapi/attribute-routing.md :warning:Warning View Details
Odata-docs/webapi/built-in-routing-conventions.md :warning:Warning View Details
Odata-docs/webapi/capabilities-vocabulary-support.md :warning:Warning View Details
Odata-docs/webapi/convention-model-builder.md :warning:Warning View Details
Odata-docs/webapi/custom-routing-convention.md :warning:Warning View Details
Odata-docs/webapi/datetime-support.md :warning:Warning View Details
Odata-docs/webapi/debugging.md :warning:Warning View Details
Odata-docs/webapi/httpRequest-message-extension-method.md :warning:Warning View Details
Odata-docs/webapi/ignore-query-option.md :warning:Warning View Details
Odata-docs/webapi/navigation-property-binding-with-complex-type.md :warning:Warning View Details
Odata-docs/webapi/referential-constraint.md :warning:Warning View Details
Odata-docs/webapi/relax-version-constraints.md :warning:Warning View Details
Odata-docs/webapi/DependencyInjection.md :warning:Warning View Details
Odata-docs/webapi/in-operator.md :warning:Warning View Details
Odata-docs/webapi/key-value-binding.md :warning:Warning View Details
Odata-docs/webapi/modelbound-attribute.md :warning:Warning View Details
Odata-docs/webapi/query-option.md :warning:Warning View Details
Odata-docs/webapi/Scaffolding.md :warning:Warning View Details
Odata-docs/webapi/unittest-e2etest.md :warning:Warning View Details
Odata-docs/webapi/unsupported-type-usage.md :warning:Warning View Details
Odata-docs/webapi/action-parameter-support.md :warning:Warning View Details
Odata-docs/webapi/add-nextpage-link-and-count-for-collection-property.md :warning:Warning View Details
Odata-docs/webapi/batch.md :warning:Warning View Details
Odata-docs/webapi/bind-custom-urifunctions-to-clr-methods.md :warning:Warning View Details
Odata-docs/webapi/concurrencymode-and-etag.md :warning:Warning View Details
Odata-docs/webapi/continue-on-error.md :warning:Warning View Details
Odata-docs/webapi/date-and-timeofday-support.md :warning:Warning View Details
Odata-docs/webapi/date-timeofday-with-entity-framework.md :warning:Warning View Details
Odata-docs/webapi/function-parameter-support.md :warning:Warning View Details
Odata-docs/webapi/model-builder-abstract.md :warning:Warning View Details
Odata-docs/webapi/model-builder-nonconvention.md :warning:Warning View Details

This comment lists only the first 50 files in the pull request.

Odata-docs/includes/appliesto-odataclient-v6.md

Odata-docs/includes/appliesto-odataclient-v7.md

Odata-docs/webapi/DeltaFeed_support.md

Odata-docs/includes/appliesto-webapi-v7.md

Odata-docs/includes/appliesto-webapi-v6.md

Odata-docs/webapi/getting-started.md

Odata-docs/webapi/include-annotations.md

Odata-docs/webapi/model-builder-untyped.md

Odata-docs/webapi/new-default-settings-v7.md

Odata-docs/webapi/query-by-dynamic-properties.md

Odata-docs/webapi/routing-abstract.md

Odata-docs/webapi/work-around-for-singleresult-create.md

Odata-docs/includes/appliesto-odatalib-v6.md

Odata-docs/includes/appliesto-odatalib-v7.md

Odata-docs/overview.md

Odata-docs/includes/appliesto-webapi-core-v7.md

Odata-docs/resources/roadmap.md

Odata-docs/spatial/create-instances.md

Odata-docs/webapi/Alternate-Key.md

Odata-docs/webapi/attribute-routing.md

Odata-docs/webapi/built-in-routing-conventions.md

Odata-docs/webapi/capabilities-vocabulary-support.md

Odata-docs/webapi/convention-model-builder.md

Odata-docs/webapi/custom-routing-convention.md

Odata-docs/webapi/datetime-support.md

Odata-docs/webapi/debugging.md

Odata-docs/webapi/httpRequest-message-extension-method.md

Odata-docs/webapi/ignore-query-option.md

Odata-docs/webapi/navigation-property-binding-with-complex-type.md

Odata-docs/webapi/referential-constraint.md

Odata-docs/webapi/relax-version-constraints.md

Odata-docs/webapi/DependencyInjection.md

Odata-docs/webapi/in-operator.md

Odata-docs/webapi/key-value-binding.md

Odata-docs/webapi/modelbound-attribute.md

Odata-docs/webapi/query-option.md

Odata-docs/webapi/Scaffolding.md

Odata-docs/webapi/unittest-e2etest.md

Odata-docs/webapi/unsupported-type-usage.md

Odata-docs/webapi/action-parameter-support.md

Odata-docs/webapi/add-nextpage-link-and-count-for-collection-property.md

Odata-docs/webapi/batch.md

Odata-docs/webapi/bind-custom-urifunctions-to-clr-methods.md

Odata-docs/webapi/concurrencymode-and-etag.md

Odata-docs/webapi/continue-on-error.md

Odata-docs/webapi/date-and-timeofday-support.md

Odata-docs/webapi/date-timeofday-with-entity-framework.md

Odata-docs/webapi/function-parameter-support.md

Odata-docs/webapi/model-builder-abstract.md

Odata-docs/webapi/model-builder-nonconvention.md

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

opbld33 commented 4 years ago

Docs Build status updates of commit dac634d:

:white_check_mark: Validation status: passed

File Status Preview URL Details
Odata-docs/client/v6/deal-with-server-driven-paging.md :white_check_mark:Succeeded View

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

opbld31 commented 4 years ago

Docs Build status updates of commit c603766:

:white_check_mark: Validation status: passed

File Status Preview URL Details
Odata-docs/client/v6/deal-with-server-driven-paging.md :white_check_mark:Succeeded View

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

opbld32 commented 4 years ago

Docs Build status updates of commit ac403ef:

:white_check_mark: Validation status: passed

File Status Preview URL Details
Odata-docs/client/v6/deal-with-server-driven-paging.md :white_check_mark:Succeeded View

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

opbld33 commented 3 years ago

Docs Build status updates of commit 2f457e9:

:warning: Validation status: warnings

File Status Preview URL Details
Odata-docs/client/v6/deal-with-server-driven-paging.md :warning:Warning View Details

Odata-docs/client/v6/deal-with-server-driven-paging.md

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

opbld31 commented 3 years ago

Docs Build status updates of commit c491adf:

:warning: Validation status: warnings

File Status Preview URL Details
Odata-docs/client/v6/deal-with-server-driven-paging.md :warning:Warning View Details

Odata-docs/client/v6/deal-with-server-driven-paging.md

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please: