Skip to content

Commit 63098ab

Browse files
committed
Set the default of MaxTop to null
1 parent 1b6c9bf commit 63098ab

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Microsoft.AspNet.OData.Shared/Query/DefaultQuerySettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.AspNet.OData.Query
1010
/// </summary>
1111
public class DefaultQuerySettings
1212
{
13-
private int? _maxTop = 0;
13+
private int? _maxTop;
1414

1515
/// <summary>
1616
/// Gets or sets a value indicating whether navigation property can be expanded.

src/Microsoft.AspNet.OData.Shared/Query/ModelBoundQuerySettings.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ namespace Microsoft.AspNet.OData.Query
1212
public class ModelBoundQuerySettings
1313
{
1414
private int? _pageSize;
15-
private int? _maxTop = 0;
15+
private int? _maxTop;
1616
private Dictionary<string, ExpandConfiguration> _expandConfigurations = new Dictionary<string, ExpandConfiguration>();
1717
private Dictionary<string, SelectExpandType> _selectConfigurations = new Dictionary<string, SelectExpandType>();
1818
private Dictionary<string, bool> _orderByConfigurations = new Dictionary<string, bool>();
1919
private Dictionary<string, bool> _filterConfigurations = new Dictionary<string, bool>();
2020

21-
internal static ModelBoundQuerySettings DefaultModelBoundQuerySettings = new ModelBoundQuerySettings
22-
{
23-
_maxTop = 0
24-
};
21+
internal static ModelBoundQuerySettings DefaultModelBoundQuerySettings = new ModelBoundQuerySettings();
2522

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

0 commit comments

Comments
 (0)