From f765b9d38927573f7ce0f596fe12feba52f28702 Mon Sep 17 00:00:00 2001 From: Jiri Cincura Date: Sat, 7 Dec 2019 12:24:08 +0100 Subject: [PATCH] Explicit order (#19216) --- .../Query/NorthwindSelectQueryTestBase.cs | 2 +- .../Query/NorthwindSelectQuerySqlServerTest.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs index bfdd0b35b81..4fd8e829969 100644 --- a/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/NorthwindSelectQueryTestBase.cs @@ -181,7 +181,7 @@ public virtual Task Projection_of_entity_type_into_object_list(bool async) { return AssertQuery( async, - ss => ss.Set().Select(c => new List { c }), + ss => ss.Set().OrderBy(c => c.CustomerID).Select(c => new List { c }), entryCount: 91, assertOrder: true); } diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs index 7066575f684..4e46d6c03c2 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs @@ -114,7 +114,8 @@ public override async Task Projection_of_entity_type_into_object_list(bool async AssertSql( @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); +FROM [Customers] AS [c] +ORDER BY [c].[CustomerID]"); } public override async Task Project_to_int_array(bool async)