Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<EFCoreVersion>11.0.0-preview.3.26160.112</EFCoreVersion>
<MicrosoftExtensionsVersion>11.0.0-preview.3.26160.112</MicrosoftExtensionsVersion>
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.3.26160.112</MicrosoftExtensionsConfigurationVersion>
<EFCoreVersion>11.0.0-preview.3.26167.112</EFCoreVersion>
<MicrosoftExtensionsVersion>11.0.0-preview.3.26167.112</MicrosoftExtensionsVersion>
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.3.26167.112</MicrosoftExtensionsConfigurationVersion>
<NpgsqlVersion>10.0.0</NpgsqlVersion>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ DELETE FROM "Context30572_Principal" AS c
WHERE c."Id" IN (
SELECT c0."Id"
FROM "Context30572_Principal" AS c0
LEFT JOIN "Context30572_Dependent" AS c1 ON c0."DependentId" = c1."Id"
)
""");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,20 +516,10 @@ public override async Task Delete_with_LeftJoin(bool async)

AssertSql(
"""
@p1='100'
@p='0'

DELETE FROM "Order Details" AS o
WHERE EXISTS (
SELECT 1
FROM "Order Details" AS o0
LEFT JOIN (
SELECT o2."OrderID"
FROM "Orders" AS o2
WHERE o2."OrderID" < 10300
ORDER BY o2."OrderID" NULLS FIRST
LIMIT @p1 OFFSET @p
) AS o1 ON o0."OrderID" = o1."OrderID"
WHERE o0."OrderID" < 10276 AND o0."OrderID" = o."OrderID" AND o0."ProductID" = o."ProductID")
""");
}
Expand All @@ -540,20 +530,10 @@ public override async Task Delete_with_LeftJoin_via_flattened_GroupJoin(bool asy

AssertSql(
"""
@p1='100'
@p='0'

DELETE FROM "Order Details" AS o
WHERE EXISTS (
SELECT 1
FROM "Order Details" AS o0
LEFT JOIN (
SELECT o2."OrderID"
FROM "Orders" AS o2
WHERE o2."OrderID" < 10300
ORDER BY o2."OrderID" NULLS FIRST
LIMIT @p1 OFFSET @p
) AS o1 ON o0."OrderID" = o1."OrderID"
WHERE o0."OrderID" < 10276 AND o0."OrderID" = o."OrderID" AND o0."ProductID" = o."ProductID")
""");
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override async Task Over_associate_collections()

AssertSql(
"""
SELECT r."Id", r."Name", r."OptionalAssociateId", r."RequiredAssociateId", a1."Id", n."Id", n0."Id", a2."Id", n1."Id", n2."Id", s."Id", s."CollectionRootId", s."Int", s."Ints", s."Name", s."OptionalNestedAssociateId", s."RequiredNestedAssociateId", s."String", s."Id0", s."Id1", s."Id2", s."CollectionAssociateId", s."Int0", s."Ints0", s."Name0", s."String0", s."CollectionAssociateId0", s."Int1", s."Ints1", s."Name1", s."String1", s."CollectionAssociateId1", s."Int2", s."Ints2", s."Name2", s."String2", a1."CollectionRootId", a1."Int", a1."Ints", a1."Name", a1."OptionalNestedAssociateId", a1."RequiredNestedAssociateId", a1."String", n6."Id", n6."CollectionAssociateId", n6."Int", n6."Ints", n6."Name", n6."String", n."CollectionAssociateId", n."Int", n."Ints", n."Name", n."String", n0."CollectionAssociateId", n0."Int", n0."Ints", n0."Name", n0."String", a2."CollectionRootId", a2."Int", a2."Ints", a2."Name", a2."OptionalNestedAssociateId", a2."RequiredNestedAssociateId", a2."String", n7."Id", n7."CollectionAssociateId", n7."Int", n7."Ints", n7."Name", n7."String", n1."CollectionAssociateId", n1."Int", n1."Ints", n1."Name", n1."String", n2."CollectionAssociateId", n2."Int", n2."Ints", n2."Name", n2."String"
SELECT r."Id", r."Name", r."OptionalAssociateId", r."RequiredAssociateId", s."Id", s."CollectionRootId", s."Int", s."Ints", s."Name", s."OptionalNestedAssociateId", s."RequiredNestedAssociateId", s."String", s."Id0", s."CollectionAssociateId", s."Int0", s."Ints0", s."Name0", s."String0", s."Id1", s."CollectionAssociateId0", s."Int1", s."Ints1", s."Name1", s."String1", s."Id2", s."CollectionAssociateId1", s."Int2", s."Ints2", s."Name2", s."String2", a1."Id", a1."CollectionRootId", a1."Int", a1."Ints", a1."Name", a1."OptionalNestedAssociateId", a1."RequiredNestedAssociateId", a1."String", n6."Id", n6."CollectionAssociateId", n6."Int", n6."Ints", n6."Name", n6."String", n."Id", n."CollectionAssociateId", n."Int", n."Ints", n."Name", n."String", n0."Id", n0."CollectionAssociateId", n0."Int", n0."Ints", n0."Name", n0."String", a2."Id", a2."CollectionRootId", a2."Int", a2."Ints", a2."Name", a2."OptionalNestedAssociateId", a2."RequiredNestedAssociateId", a2."String", n7."Id", n7."CollectionAssociateId", n7."Int", n7."Ints", n7."Name", n7."String", n1."Id", n1."CollectionAssociateId", n1."Int", n1."Ints", n1."Name", n1."String", n2."Id", n2."CollectionAssociateId", n2."Int", n2."Ints", n2."Name", n2."String"
FROM "RootEntity" AS r
LEFT JOIN "AssociateType" AS a1 ON r."OptionalAssociateId" = a1."Id"
LEFT JOIN "NestedAssociateType" AS n ON a1."OptionalNestedAssociateId" = n."Id"
Expand All @@ -23,7 +23,7 @@ public override async Task Over_associate_collections()
LEFT JOIN "NestedAssociateType" AS n1 ON a2."OptionalNestedAssociateId" = n1."Id"
INNER JOIN "NestedAssociateType" AS n2 ON a2."RequiredNestedAssociateId" = n2."Id"
LEFT JOIN (
SELECT a3."Id", a3."CollectionRootId", a3."Int", a3."Ints", a3."Name", a3."OptionalNestedAssociateId", a3."RequiredNestedAssociateId", a3."String", n3."Id" AS "Id0", n4."Id" AS "Id1", n5."Id" AS "Id2", n5."CollectionAssociateId", n5."Int" AS "Int0", n5."Ints" AS "Ints0", n5."Name" AS "Name0", n5."String" AS "String0", n3."CollectionAssociateId" AS "CollectionAssociateId0", n3."Int" AS "Int1", n3."Ints" AS "Ints1", n3."Name" AS "Name1", n3."String" AS "String1", n4."CollectionAssociateId" AS "CollectionAssociateId1", n4."Int" AS "Int2", n4."Ints" AS "Ints2", n4."Name" AS "Name2", n4."String" AS "String2"
SELECT a3."Id", a3."CollectionRootId", a3."Int", a3."Ints", a3."Name", a3."OptionalNestedAssociateId", a3."RequiredNestedAssociateId", a3."String", n5."Id" AS "Id0", n5."CollectionAssociateId", n5."Int" AS "Int0", n5."Ints" AS "Ints0", n5."Name" AS "Name0", n5."String" AS "String0", n3."Id" AS "Id1", n3."CollectionAssociateId" AS "CollectionAssociateId0", n3."Int" AS "Int1", n3."Ints" AS "Ints1", n3."Name" AS "Name1", n3."String" AS "String1", n4."Id" AS "Id2", n4."CollectionAssociateId" AS "CollectionAssociateId1", n4."Int" AS "Int2", n4."Ints" AS "Ints2", n4."Name" AS "Name2", n4."String" AS "String2"
FROM "AssociateType" AS a3
LEFT JOIN "NestedAssociateType" AS n3 ON a3."OptionalNestedAssociateId" = n3."Id"
INNER JOIN "NestedAssociateType" AS n4 ON a3."RequiredNestedAssociateId" = n4."Id"
Expand All @@ -42,7 +42,7 @@ SELECT 1
FROM "AssociateType" AS a0
WHERE r."Id" = a0."CollectionRootId" AND a0."String" = 'foo'
) AS u) = 4
ORDER BY r."Id" NULLS FIRST, a1."Id" NULLS FIRST, n."Id" NULLS FIRST, n0."Id" NULLS FIRST, a2."Id" NULLS FIRST, n1."Id" NULLS FIRST, n2."Id" NULLS FIRST, s."Id" NULLS FIRST, s."Id0" NULLS FIRST, s."Id1" NULLS FIRST, s."Id2" NULLS FIRST, n6."Id" NULLS FIRST
ORDER BY r."Id" NULLS FIRST, s."Id" NULLS FIRST, s."Id0" NULLS FIRST, n6."Id" NULLS FIRST
""");
}

Expand Down Expand Up @@ -83,7 +83,7 @@ public override async Task Over_nested_associate_collection()

AssertSql(
"""
SELECT r."Id", r."Name", r."OptionalAssociateId", r."RequiredAssociateId", a."Id", a0."Id", n1."Id", n2."Id", n3."Id", n4."Id", s."Id", s."CollectionRootId", s."Int", s."Ints", s."Name", s."OptionalNestedAssociateId", s."RequiredNestedAssociateId", s."String", s."Id0", s."Id1", s."Id2", s."CollectionAssociateId", s."Int0", s."Ints0", s."Name0", s."String0", s."CollectionAssociateId0", s."Int1", s."Ints1", s."Name1", s."String1", s."CollectionAssociateId1", s."Int2", s."Ints2", s."Name2", s."String2", a0."CollectionRootId", a0."Int", a0."Ints", a0."Name", a0."OptionalNestedAssociateId", a0."RequiredNestedAssociateId", a0."String", n8."Id", n8."CollectionAssociateId", n8."Int", n8."Ints", n8."Name", n8."String", n1."CollectionAssociateId", n1."Int", n1."Ints", n1."Name", n1."String", n2."CollectionAssociateId", n2."Int", n2."Ints", n2."Name", n2."String", a."CollectionRootId", a."Int", a."Ints", a."Name", a."OptionalNestedAssociateId", a."RequiredNestedAssociateId", a."String", n9."Id", n9."CollectionAssociateId", n9."Int", n9."Ints", n9."Name", n9."String", n3."CollectionAssociateId", n3."Int", n3."Ints", n3."Name", n3."String", n4."CollectionAssociateId", n4."Int", n4."Ints", n4."Name", n4."String"
SELECT r."Id", r."Name", r."OptionalAssociateId", r."RequiredAssociateId", s."Id", s."CollectionRootId", s."Int", s."Ints", s."Name", s."OptionalNestedAssociateId", s."RequiredNestedAssociateId", s."String", s."Id0", s."CollectionAssociateId", s."Int0", s."Ints0", s."Name0", s."String0", s."Id1", s."CollectionAssociateId0", s."Int1", s."Ints1", s."Name1", s."String1", s."Id2", s."CollectionAssociateId1", s."Int2", s."Ints2", s."Name2", s."String2", a0."Id", a0."CollectionRootId", a0."Int", a0."Ints", a0."Name", a0."OptionalNestedAssociateId", a0."RequiredNestedAssociateId", a0."String", n8."Id", n8."CollectionAssociateId", n8."Int", n8."Ints", n8."Name", n8."String", n1."Id", n1."CollectionAssociateId", n1."Int", n1."Ints", n1."Name", n1."String", n2."Id", n2."CollectionAssociateId", n2."Int", n2."Ints", n2."Name", n2."String", a."Id", a."CollectionRootId", a."Int", a."Ints", a."Name", a."OptionalNestedAssociateId", a."RequiredNestedAssociateId", a."String", n9."Id", n9."CollectionAssociateId", n9."Int", n9."Ints", n9."Name", n9."String", n3."Id", n3."CollectionAssociateId", n3."Int", n3."Ints", n3."Name", n3."String", n4."Id", n4."CollectionAssociateId", n4."Int", n4."Ints", n4."Name", n4."String"
FROM "RootEntity" AS r
INNER JOIN "AssociateType" AS a ON r."RequiredAssociateId" = a."Id"
LEFT JOIN "AssociateType" AS a0 ON r."OptionalAssociateId" = a0."Id"
Expand All @@ -92,7 +92,7 @@ public override async Task Over_nested_associate_collection()
LEFT JOIN "NestedAssociateType" AS n3 ON a."OptionalNestedAssociateId" = n3."Id"
INNER JOIN "NestedAssociateType" AS n4 ON a."RequiredNestedAssociateId" = n4."Id"
LEFT JOIN (
SELECT a1."Id", a1."CollectionRootId", a1."Int", a1."Ints", a1."Name", a1."OptionalNestedAssociateId", a1."RequiredNestedAssociateId", a1."String", n5."Id" AS "Id0", n6."Id" AS "Id1", n7."Id" AS "Id2", n7."CollectionAssociateId", n7."Int" AS "Int0", n7."Ints" AS "Ints0", n7."Name" AS "Name0", n7."String" AS "String0", n5."CollectionAssociateId" AS "CollectionAssociateId0", n5."Int" AS "Int1", n5."Ints" AS "Ints1", n5."Name" AS "Name1", n5."String" AS "String1", n6."CollectionAssociateId" AS "CollectionAssociateId1", n6."Int" AS "Int2", n6."Ints" AS "Ints2", n6."Name" AS "Name2", n6."String" AS "String2"
SELECT a1."Id", a1."CollectionRootId", a1."Int", a1."Ints", a1."Name", a1."OptionalNestedAssociateId", a1."RequiredNestedAssociateId", a1."String", n7."Id" AS "Id0", n7."CollectionAssociateId", n7."Int" AS "Int0", n7."Ints" AS "Ints0", n7."Name" AS "Name0", n7."String" AS "String0", n5."Id" AS "Id1", n5."CollectionAssociateId" AS "CollectionAssociateId0", n5."Int" AS "Int1", n5."Ints" AS "Ints1", n5."Name" AS "Name1", n5."String" AS "String1", n6."Id" AS "Id2", n6."CollectionAssociateId" AS "CollectionAssociateId1", n6."Int" AS "Int2", n6."Ints" AS "Ints2", n6."Name" AS "Name2", n6."String" AS "String2"
FROM "AssociateType" AS a1
LEFT JOIN "NestedAssociateType" AS n5 ON a1."OptionalNestedAssociateId" = n5."Id"
INNER JOIN "NestedAssociateType" AS n6 ON a1."RequiredNestedAssociateId" = n6."Id"
Expand All @@ -111,7 +111,7 @@ SELECT 1
FROM "NestedAssociateType" AS n0
WHERE a."Id" = n0."CollectionAssociateId" AND n0."String" = 'foo'
) AS u) = 4
ORDER BY r."Id" NULLS FIRST, a."Id" NULLS FIRST, a0."Id" NULLS FIRST, n1."Id" NULLS FIRST, n2."Id" NULLS FIRST, n3."Id" NULLS FIRST, n4."Id" NULLS FIRST, s."Id" NULLS FIRST, s."Id0" NULLS FIRST, s."Id1" NULLS FIRST, s."Id2" NULLS FIRST, n8."Id" NULLS FIRST
ORDER BY r."Id" NULLS FIRST, s."Id" NULLS FIRST, s."Id0" NULLS FIRST, n8."Id" NULLS FIRST
""");
}

Expand All @@ -121,7 +121,7 @@ public override async Task Over_different_collection_properties()

AssertSql(
"""
SELECT r."Id", r."Name", r."OptionalAssociateId", r."RequiredAssociateId", a."Id", a0."Id", n1."Id", n2."Id", n3."Id", n4."Id", s."Id", s."CollectionRootId", s."Int", s."Ints", s."Name", s."OptionalNestedAssociateId", s."RequiredNestedAssociateId", s."String", s."Id0", s."Id1", s."Id2", s."CollectionAssociateId", s."Int0", s."Ints0", s."Name0", s."String0", s."CollectionAssociateId0", s."Int1", s."Ints1", s."Name1", s."String1", s."CollectionAssociateId1", s."Int2", s."Ints2", s."Name2", s."String2", a0."CollectionRootId", a0."Int", a0."Ints", a0."Name", a0."OptionalNestedAssociateId", a0."RequiredNestedAssociateId", a0."String", n8."Id", n8."CollectionAssociateId", n8."Int", n8."Ints", n8."Name", n8."String", n1."CollectionAssociateId", n1."Int", n1."Ints", n1."Name", n1."String", n2."CollectionAssociateId", n2."Int", n2."Ints", n2."Name", n2."String", a."CollectionRootId", a."Int", a."Ints", a."Name", a."OptionalNestedAssociateId", a."RequiredNestedAssociateId", a."String", n9."Id", n9."CollectionAssociateId", n9."Int", n9."Ints", n9."Name", n9."String", n3."CollectionAssociateId", n3."Int", n3."Ints", n3."Name", n3."String", n4."CollectionAssociateId", n4."Int", n4."Ints", n4."Name", n4."String"
SELECT r."Id", r."Name", r."OptionalAssociateId", r."RequiredAssociateId", s."Id", s."CollectionRootId", s."Int", s."Ints", s."Name", s."OptionalNestedAssociateId", s."RequiredNestedAssociateId", s."String", s."Id0", s."CollectionAssociateId", s."Int0", s."Ints0", s."Name0", s."String0", s."Id1", s."CollectionAssociateId0", s."Int1", s."Ints1", s."Name1", s."String1", s."Id2", s."CollectionAssociateId1", s."Int2", s."Ints2", s."Name2", s."String2", a0."Id", a0."CollectionRootId", a0."Int", a0."Ints", a0."Name", a0."OptionalNestedAssociateId", a0."RequiredNestedAssociateId", a0."String", n8."Id", n8."CollectionAssociateId", n8."Int", n8."Ints", n8."Name", n8."String", n1."Id", n1."CollectionAssociateId", n1."Int", n1."Ints", n1."Name", n1."String", n2."Id", n2."CollectionAssociateId", n2."Int", n2."Ints", n2."Name", n2."String", a."Id", a."CollectionRootId", a."Int", a."Ints", a."Name", a."OptionalNestedAssociateId", a."RequiredNestedAssociateId", a."String", n9."Id", n9."CollectionAssociateId", n9."Int", n9."Ints", n9."Name", n9."String", n3."Id", n3."CollectionAssociateId", n3."Int", n3."Ints", n3."Name", n3."String", n4."Id", n4."CollectionAssociateId", n4."Int", n4."Ints", n4."Name", n4."String"
FROM "RootEntity" AS r
INNER JOIN "AssociateType" AS a ON r."RequiredAssociateId" = a."Id"
LEFT JOIN "AssociateType" AS a0 ON r."OptionalAssociateId" = a0."Id"
Expand All @@ -130,7 +130,7 @@ public override async Task Over_different_collection_properties()
LEFT JOIN "NestedAssociateType" AS n3 ON a."OptionalNestedAssociateId" = n3."Id"
INNER JOIN "NestedAssociateType" AS n4 ON a."RequiredNestedAssociateId" = n4."Id"
LEFT JOIN (
SELECT a1."Id", a1."CollectionRootId", a1."Int", a1."Ints", a1."Name", a1."OptionalNestedAssociateId", a1."RequiredNestedAssociateId", a1."String", n5."Id" AS "Id0", n6."Id" AS "Id1", n7."Id" AS "Id2", n7."CollectionAssociateId", n7."Int" AS "Int0", n7."Ints" AS "Ints0", n7."Name" AS "Name0", n7."String" AS "String0", n5."CollectionAssociateId" AS "CollectionAssociateId0", n5."Int" AS "Int1", n5."Ints" AS "Ints1", n5."Name" AS "Name1", n5."String" AS "String1", n6."CollectionAssociateId" AS "CollectionAssociateId1", n6."Int" AS "Int2", n6."Ints" AS "Ints2", n6."Name" AS "Name2", n6."String" AS "String2"
SELECT a1."Id", a1."CollectionRootId", a1."Int", a1."Ints", a1."Name", a1."OptionalNestedAssociateId", a1."RequiredNestedAssociateId", a1."String", n7."Id" AS "Id0", n7."CollectionAssociateId", n7."Int" AS "Int0", n7."Ints" AS "Ints0", n7."Name" AS "Name0", n7."String" AS "String0", n5."Id" AS "Id1", n5."CollectionAssociateId" AS "CollectionAssociateId0", n5."Int" AS "Int1", n5."Ints" AS "Ints1", n5."Name" AS "Name1", n5."String" AS "String1", n6."Id" AS "Id2", n6."CollectionAssociateId" AS "CollectionAssociateId1", n6."Int" AS "Int2", n6."Ints" AS "Ints2", n6."Name" AS "Name2", n6."String" AS "String2"
FROM "AssociateType" AS a1
LEFT JOIN "NestedAssociateType" AS n5 ON a1."OptionalNestedAssociateId" = n5."Id"
INNER JOIN "NestedAssociateType" AS n6 ON a1."RequiredNestedAssociateId" = n6."Id"
Expand All @@ -149,7 +149,7 @@ SELECT 1
FROM "NestedAssociateType" AS n0
WHERE a0."Id" IS NOT NULL AND a0."Id" = n0."CollectionAssociateId"
) AS u) = 4
ORDER BY r."Id" NULLS FIRST, a."Id" NULLS FIRST, a0."Id" NULLS FIRST, n1."Id" NULLS FIRST, n2."Id" NULLS FIRST, n3."Id" NULLS FIRST, n4."Id" NULLS FIRST, s."Id" NULLS FIRST, s."Id0" NULLS FIRST, s."Id1" NULLS FIRST, s."Id2" NULLS FIRST, n8."Id" NULLS FIRST
ORDER BY r."Id" NULLS FIRST, s."Id" NULLS FIRST, s."Id0" NULLS FIRST, n8."Id" NULLS FIRST
""");
}

Expand Down
Loading
Loading