Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the default of MaxTop to null #2192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Set the default of MaxTop to null #2192

wants to merge 1 commit into from

Conversation

xuzhg
Copy link
Member

@xuzhg xuzhg commented Jun 9, 2020

Issues

This pull request continues the PR #1400.

Description

Briefly describe the changes of this pull request.

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

@@ -934,7 +934,8 @@ internal static bool TryGetInnerTypeForDelta(ref Type type)
propertyTypeQuerySettings.PageSize;
}

if (mergedQuerySettings.MaxTop == 0 && propertyTypeQuerySettings.MaxTop != 0)
if (!mergedQuerySettings.MaxTop.HasValue ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any need for a test here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants