Skip to content

Commit

Permalink
Set the default of MaxTop to null
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg committed Jun 9, 2020
1 parent 8de67a7 commit 3141309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.AspNet.OData.Query
/// </summary>
public class DefaultQuerySettings
{
private int? _maxTop = 0;
private int? _maxTop;

/// <summary>
/// Gets or sets a value indicating whether navigation property can be expanded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ namespace Microsoft.AspNet.OData.Query
public class ModelBoundQuerySettings
{
private int? _pageSize;
private int? _maxTop = 0;
private int? _maxTop;
private Dictionary<string, ExpandConfiguration> _expandConfigurations = new Dictionary<string, ExpandConfiguration>();
private Dictionary<string, SelectExpandType> _selectConfigurations = new Dictionary<string, SelectExpandType>();
private Dictionary<string, bool> _orderByConfigurations = new Dictionary<string, bool>();
private Dictionary<string, bool> _filterConfigurations = new Dictionary<string, bool>();

internal static ModelBoundQuerySettings DefaultModelBoundQuerySettings = new ModelBoundQuerySettings
{
_maxTop = 0
};
internal static ModelBoundQuerySettings DefaultModelBoundQuerySettings = new ModelBoundQuerySettings();

/// <summary>
/// Instantiates a new instance of the <see cref="ModelBoundQuerySettings"/> class
Expand Down

0 comments on commit 3141309

Please sign in to comment.