Skip to content

Commit f765b9d

Browse files
cincuranetroji
authored andcommitted
Explicit order (#19216)
1 parent 55ed125 commit f765b9d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public virtual Task Projection_of_entity_type_into_object_list(bool async)
181181
{
182182
return AssertQuery(
183183
async,
184-
ss => ss.Set<Customer>().Select(c => new List<object> { c }),
184+
ss => ss.Set<Customer>().OrderBy(c => c.CustomerID).Select(c => new List<object> { c }),
185185
entryCount: 91,
186186
assertOrder: true);
187187
}

test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public override async Task Projection_of_entity_type_into_object_list(bool async
114114

115115
AssertSql(
116116
@"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region]
117-
FROM [Customers] AS [c]");
117+
FROM [Customers] AS [c]
118+
ORDER BY [c].[CustomerID]");
118119
}
119120

120121
public override async Task Project_to_int_array(bool async)

0 commit comments

Comments
 (0)