Skip to content

Commit 0427dbd

Browse files
committed
Update readme.md
1 parent 032dcca commit 0427dbd

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

readme.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -679,19 +679,35 @@ builder.UseDescriptiveTableAliases();
679679
With descriptive aliases enabled, the generated SQL:
680680

681681
```sql
682-
SELECT [companies].[Id], [companies].[Name], [employees].[Id], [employees].[Age], [employees].[CompanyId], [employees].[Name]
683-
FROM [Companies] AS [companies]
684-
LEFT JOIN [Employees] AS [employees] ON [companies].[Id] = [employees].[CompanyId]
685-
ORDER BY [companies].[Name], [companies].[Id]
682+
select companies.Id,
683+
companies.Name,
684+
employees.Id,
685+
employees.Age,
686+
employees.CompanyId,
687+
employees.Name
688+
from Companies as companies
689+
left outer join
690+
Employees as employees
691+
on companies.Id = employees.CompanyId
692+
order by companies.Name,
693+
companies.Id
686694
```
687695

688696
Instead of the default:
689697

690698
```sql
691-
SELECT [c].[Id], [c].[Name], [e].[Id], [e].[Age], [e].[CompanyId], [e].[Name]
692-
FROM [Companies] AS [c]
693-
LEFT JOIN [Employees] AS [e] ON [c].[Id] = [e].[CompanyId]
694-
ORDER BY [c].[Name], [c].[Id]
699+
select c.Id,
700+
c.Name,
701+
e.Id,
702+
e.Age,
703+
e.CompanyId,
704+
e.Name
705+
from Companies as c
706+
left outer join
707+
Employees as e
708+
on c.Id = e.CompanyId
709+
order by c.Name,
710+
c.Id
695711
```
696712

697713

0 commit comments

Comments
 (0)