Skip to content

Commit 8e88fb5

Browse files
committed
fix tests
1 parent b068633 commit 8e88fb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AutoMapper.AspNetCore.OData.EFCore/LinqExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ public static Expression GetQueryableMethod(this Expression expression,
192192
if (orderByClause is null && skip is null && top is null)
193193
return null;
194194

195-
if (orderByClause is null && !oDataSettings.EnsureStableOrdering)
195+
bool ensureStableOrdering = oDataSettings?.EnsureStableOrdering ?? true;
196+
if (orderByClause is null && !ensureStableOrdering)
196197
return expression.GetSkipCall(skip).GetTakeCall(top);
197198

198199
if (orderByClause is null && (skip is not null || top is not null))

0 commit comments

Comments
 (0)