dotnet / dotnet/efcore

Consider wider SQL aliases

Open
#31,134 0 comments 0 reactions 0 assignees View on GitHub
area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Our current SQL aliasing always just takes the first character of the identifier, so Order and OrderItems both get `[o]`; this causes uniquification to kick in, and we end up with `o` and `o0` which are pretty hard to distinguish when looking at the SQL.

We could identify the pascal-cased .NET name and generate wider aliases, e.g. `[o]` and `[oi]`; this would improve our SQL readability/cleanliness.

Note that we'd probably want to support other naming schemes, e.g. snake_case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.