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
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ LIMIT @__p_0

```sql
-- @__brandIds_0={ '11', '13' } (DbType = Object)
SELECT p1."BrandId", p3."Id", p3."Name", p3."BrandId"
SELECT p1."BrandId", p3."BrandId", p3."Id", p3."Name"
FROM (
SELECT p."BrandId"
FROM "Products" AS p
WHERE p."BrandId" = ANY (@__brandIds_0)
GROUP BY p."BrandId"
) AS p1
LEFT JOIN (
SELECT p2."Id", p2."Name", p2."BrandId"
SELECT p2."BrandId", p2."Id", p2."Name"
FROM (
SELECT p0."Id", p0."Name", p0."BrandId", ROW_NUMBER() OVER(PARTITION BY p0."BrandId" ORDER BY p0."Name" DESC, p0."Id") AS row
SELECT p0."BrandId", p0."Id", p0."Name", ROW_NUMBER() OVER(PARTITION BY p0."BrandId" ORDER BY p0."Name" DESC, p0."Id") AS row
FROM "Products" AS p0
WHERE p0."BrandId" = ANY (@__brandIds_0)
) AS p2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ LIMIT @__p_0

```sql
-- @__brandIds_0={ '11', '13' } (DbType = Object)
SELECT t."BrandId", t0."Id", t0."Name", t0."BrandId"
SELECT t."BrandId", t0."BrandId", t0."Id", t0."Name"
FROM (
SELECT p."BrandId"
FROM "Products" AS p
WHERE p."BrandId" = ANY (@__brandIds_0)
GROUP BY p."BrandId"
) AS t
LEFT JOIN (
SELECT t1."Id", t1."Name", t1."BrandId"
SELECT t1."BrandId", t1."Id", t1."Name"
FROM (
SELECT p0."Id", p0."Name", p0."BrandId", ROW_NUMBER() OVER(PARTITION BY p0."BrandId" ORDER BY p0."Name" DESC, p0."Id") AS row
SELECT p0."BrandId", p0."Id", p0."Name", ROW_NUMBER() OVER(PARTITION BY p0."BrandId" ORDER BY p0."Name" DESC, p0."Id") AS row
FROM "Products" AS p0
WHERE p0."BrandId" = ANY (@__brandIds_0)
) AS t1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

```sql
-- @__p_0='2'
SELECT b."Name", b."Id"
SELECT b."Id", b."Name"
FROM "Brands" AS b
ORDER BY b."Name" DESC, b."Id"
LIMIT @__p_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

```sql
-- @__p_0='2'
SELECT b."Name", b."Id"
SELECT b."Id", b."Name"
FROM "Brands" AS b
ORDER BY b."Name" DESC, b."Id"
LIMIT @__p_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

```sql
-- @__p_0='3'
SELECT p."Name", p."BrandId", p."Id"
SELECT p."BrandId", p."Name", p."Id"
FROM "Products" AS p
ORDER BY p."Name" DESC, p."Id"
LIMIT @__p_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

```sql
-- @__p_0='3'
SELECT p."Name", p."BrandId", p."Id"
SELECT p."BrandId", p."Name", p."Id"
FROM "Products" AS p
ORDER BY p."Name" DESC, p."Id"
LIMIT @__p_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
-- @__p_0='3'
SELECT (
SELECT count(*)::int
FROM "Products" AS p0) AS "TotalCount", p."Name", p."BrandId", p."Id"
FROM "Products" AS p0) AS "TotalCount", p."BrandId", p."Name", p."Id"
FROM "Products" AS p
ORDER BY p."Name" DESC, p."Id"
LIMIT @__p_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
-- @__value_1='46'
-- @__p_3='3'
-- @__p_2='6'
SELECT p."Name", p."BrandId", p."Id"
SELECT p."BrandId", p."Name", p."Id"
FROM "Products" AS p
WHERE p."Name" < @__value_0 OR (p."Name" = @__value_0 AND p."Id" > @__value_1)
ORDER BY p."Name" DESC, p."Id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
-- @__value_1='46'
-- @__p_3='3'
-- @__p_2='6'
SELECT p."Name", p."BrandId", p."Id"
SELECT p."BrandId", p."Name", p."Id"
FROM "Products" AS p
WHERE p."Name" < @__value_0 OR (p."Name" = @__value_0 AND p."Id" > @__value_1)
ORDER BY p."Name" DESC, p."Id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
```sql
-- @__Count_1='101'
-- @__p_0='3'
SELECT @__Count_1 AS "TotalCount", p."Name", p."BrandId", p."Id"
SELECT @__Count_1 AS "TotalCount", p."BrandId", p."Name", p."Id"
FROM "Products" AS p
ORDER BY p."Name" DESC, p."Id"
LIMIT @__p_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```sql
-- @__p_0='11'
SELECT t."Id", t."Name", b."Id" IS NULL, b."Id", b."Description"
SELECT b."Id" IS NULL, b."Description", b."Id", t."Id", t."Name"
FROM (
SELECT f."Id", f."BarId", f."Name"
FROM "Foos" AS f
Expand All @@ -18,7 +18,7 @@ ORDER BY t."Name", t."Id"
## Expression 0

```text
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Id = root.Id, Name = root.Name, Bar = IIF((root.Bar == null), null, new Bar() {Id = root.Bar.Id, Description = IIF((root.Bar.Description == null), null, root.Bar.Description)})}).Take(11)
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Bar = IIF((root.Bar == null), null, new Bar() {Description = IIF((root.Bar.Description == null), null, root.Bar.Description), Id = root.Bar.Id}), Id = root.Id, Name = root.Name}).Take(11)
```

## Result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```sql
-- @__p_0='11'
SELECT t."Id", t."Name", b."Id" IS NULL, b."Id", b."Description", b."SomeField1", b."SomeField2"
SELECT b."Id" IS NULL, b."Description", b."Id", b."SomeField1", b."SomeField2", t."Id", t."Name"
FROM (
SELECT f."Id", f."BarId", f."Name"
FROM "Foos" AS f
Expand All @@ -18,7 +18,7 @@ ORDER BY t."Name", t."Id"
## Expression 0

```text
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Id = root.Id, Name = root.Name, Bar = IIF((root.Bar == null), null, new Bar() {Id = root.Bar.Id, Description = IIF((root.Bar.Description == null), null, root.Bar.Description), SomeField1 = root.Bar.SomeField1, SomeField2 = IIF((root.Bar.SomeField2 == null), null, root.Bar.SomeField2)})}).Take(11)
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Bar = IIF((root.Bar == null), null, new Bar() {Description = IIF((root.Bar.Description == null), null, root.Bar.Description), Id = root.Bar.Id, SomeField1 = root.Bar.SomeField1, SomeField2 = IIF((root.Bar.SomeField2 == null), null, root.Bar.SomeField2)}), Id = root.Id, Name = root.Name}).Take(11)
```

## Result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```sql
-- @__p_0='11'
SELECT f0."Id", f0."Name", b."Id" IS NULL, b."Id", b."Description", b."SomeField1", b."SomeField2"
SELECT b."Id" IS NULL, b."Description", b."Id", b."SomeField1", b."SomeField2", f0."Id", f0."Name"
FROM (
SELECT f."Id", f."BarId", f."Name"
FROM "Foos" AS f
Expand All @@ -18,7 +18,7 @@ ORDER BY f0."Name", f0."Id"
## Expression 0

```text
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Id = root.Id, Name = root.Name, Bar = IIF((root.Bar == null), null, new Bar() {Id = root.Bar.Id, Description = IIF((root.Bar.Description == null), null, root.Bar.Description), SomeField1 = root.Bar.SomeField1, SomeField2 = IIF((root.Bar.SomeField2 == null), null, root.Bar.SomeField2)})}).Take(11)
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Bar = IIF((root.Bar == null), null, new Bar() {Description = IIF((root.Bar.Description == null), null, root.Bar.Description), Id = root.Bar.Id, SomeField1 = root.Bar.SomeField1, SomeField2 = IIF((root.Bar.SomeField2 == null), null, root.Bar.SomeField2)}), Id = root.Id, Name = root.Name}).Take(11)
```

## Result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```sql
-- @__p_0='11'
SELECT f0."Id", f0."Name", b."Id" IS NULL, b."Id", b."Description"
SELECT b."Id" IS NULL, b."Description", b."Id", f0."Id", f0."Name"
FROM (
SELECT f."Id", f."BarId", f."Name"
FROM "Foos" AS f
Expand All @@ -18,7 +18,7 @@ ORDER BY f0."Name", f0."Id"
## Expression 0

```text
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Id = root.Id, Name = root.Name, Bar = IIF((root.Bar == null), null, new Bar() {Id = root.Bar.Id, Description = IIF((root.Bar.Description == null), null, root.Bar.Description)})}).Take(11)
[Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression].OrderBy(t => t.Name).ThenBy(t => t.Id).Select(root => new Foo() {Bar = IIF((root.Bar == null), null, new Bar() {Description = IIF((root.Bar.Description == null), null, root.Bar.Description), Id = root.Bar.Id}), Id = root.Id, Name = root.Name}).Take(11)
```

## Result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```text
-- @__keys_0={ '1', '2' } (DbType = Object)
SELECT p."Name", FALSE, b."Name", p."Id"
SELECT FALSE, b."Name", p."Name", p."Id"
FROM "Products" AS p
INNER JOIN "Brands" AS b ON p."BrandId" = b."Id"
WHERE p."Id" = ANY (@__keys_0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```text
-- @__keys_0={ '1' } (DbType = Object)
SELECT b."Name", b."Details_Country_Name" AS "Name", b."Id"
SELECT b."Details_Country_Name" AS "Name", b."Name", b."Id"
FROM "Brands" AS b
WHERE b."Id" = ANY (@__keys_0)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

```text
-- @__keys_0={ '1' } (DbType = Object)
SELECT p."Name", FALSE, b."Name", p."Id"
SELECT FALSE, b."Name", p."Name", p."Id"
FROM "Products" AS p
INNER JOIN "Brands" AS b ON p."BrandId" = b."Id"
WHERE p."Id" = ANY (@__keys_0)
-- @__keys_0={ '1' } (DbType = Object)
SELECT p."Id", FALSE, b."Id"
SELECT FALSE, b."Id", p."Id"
FROM "Products" AS p
INNER JOIN "Brands" AS b ON p."BrandId" = b."Id"
WHERE p."Id" = ANY (@__keys_0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```text
-- @__keys_0={ '1' } (DbType = Object)
SELECT p."Name", FALSE, b."Name", p."Id"
SELECT FALSE, b."Name", p."Name", p."Id"
FROM "Products" AS p
INNER JOIN "Brands" AS b ON p."BrandId" = b."Id"
WHERE p."Id" = ANY (@__keys_0)
Expand Down
Loading