You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6c54b1
Browse filesBrowse the repository at this point in the historyBrowse files
Bind members of entities from single-result subqueries that include navigations
Composing a Where or OrderBy over an entity produced by a single-result
subquery (e.g. GroupBy(...).Select(g => g.First(...)).Where(...)) failed to
translate when the entity includes navigations, such as owned types or
auto-included navigations: the subquery's shaper was wrapped in
IncludeExpressions. Unwrap the includes, and bind an included reference
navigation over the same subquery, projecting the navigation's target.
Moves the GroupBy element tests to the shared associations test base, so
that they run for complex types, owned types and navigations.
Copy file name to clipboardExpand all lines: test/EFCore.Cosmos.FunctionalTests/Query/Associations/ComplexProperties/ComplexPropertiesMiscellaneousCosmosTest.cs
Copy file name to clipboardExpand all lines: test/EFCore.Cosmos.FunctionalTests/Query/Associations/OwnedComplexProperties/OwnedComplexPropertiesMiscellaneousCosmosTest.cs
Copy file name to clipboardExpand all lines: test/EFCore.Cosmos.FunctionalTests/Query/Associations/OwnedNavigations/OwnedNavigationsMiscellaneousCosmosTest.cs
Copy file name to clipboardExpand all lines: test/EFCore.Specification.Tests/Query/Associations/ComplexProperties/ComplexPropertiesMiscellaneousTestBase.cs
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,4 @@ public virtual Task Where_HasValue_on_nullable_value_type()
Copy file name to clipboardExpand all lines: test/EFCore.SqlServer.FunctionalTests/Query/Associations/ComplexJson/ComplexJsonMiscellaneousSqlServerTest.cs
WHERE ([r0].[Key] = [r3].[Key] OR ([r0].[Key] IS NULL AND [r3].[Key] IS NULL)) AND [r3].[Id] > 0
383
+
ORDER BY [r3].[Id]) > 1
384
+
) AS [r5]
385
+
LEFT JOIN (
386
+
SELECT [r6].[Id], [r6].[Name], [r6].[c] AS [c], [r6].[c0] AS [c0], [r6].[c1] AS [c1], [r6].[Key]
387
+
FROM (
388
+
SELECT [r1].[Id], [r1].[Name], [r1].[c] AS [c], [r1].[c0] AS [c0], [r1].[c1] AS [c1], [r1].[Key], ROW_NUMBER() OVER(PARTITION BY [r1].[Key] ORDER BY [r1].[Id]) AS [row]
389
+
FROM (
390
+
SELECT [r2].[Id], [r2].[Name], [r2].[AssociateCollection] AS [c], [r2].[OptionalAssociate] AS [c0], [r2].[RequiredAssociate] AS [c1], [r2].[Id] % 2 AS [Key]
391
+
FROM [RootEntity] AS [r2]
392
+
) AS [r1]
393
+
WHERE [r1].[Id] > 0
394
+
) AS [r6]
395
+
WHERE [r6].[row] <= 1
396
+
) AS [r7] ON [r5].[Key] = [r7].[Key] OR ([r5].[Key] IS NULL AND [r7].[Key] IS NULL)
SELECT [r0].[Id], [r0].[Name], [r0].[c] AS [c], [r0].[c0] AS [c0], [r0].[c1] AS [c1], ROW_NUMBER() OVER(PARTITION BY [r0].[Key] ORDER BY [r0].[Id] DESC) AS [row]
487
+
FROM (
488
+
SELECT [r].[Id], [r].[Name], [r].[AssociateCollection] AS [c], [r].[OptionalAssociate] AS [c0], [r].[RequiredAssociate] AS [c1], [r].[Id] % 2 AS [Key]
489
+
FROM [RootEntity] AS [r]
490
+
) AS [r0]
491
+
) AS [r1]
492
+
WHERE [r1].[row] <= 1
493
+
ORDER BY JSON_VALUE([r1].[c1], '$.Int' RETURNING int), [r1].[Id]
SELECT [r0].[Id], [r0].[Name], [r0].[c] AS [c], [r0].[c0] AS [c0], [r0].[c1] AS [c1], ROW_NUMBER() OVER(PARTITION BY [r0].[Key] ORDER BY [r0].[Id] DESC) AS [row]
503
+
FROM (
504
+
SELECT [r].[Id], [r].[Name], [r].[AssociateCollection] AS [c], [r].[OptionalAssociate] AS [c0], [r].[RequiredAssociate] AS [c1], [r].[Id] % 2 AS [Key]
505
+
FROM [RootEntity] AS [r]
506
+
) AS [r0]
507
+
) AS [r1]
508
+
WHERE [r1].[row] <= 1
509
+
ORDER BY CAST(JSON_VALUE([r1].[c1], '$.Int') AS int), [r1].[Id]
0 commit comments