Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider wider SQL aliases #31134

Open
roji opened this issue Jun 25, 2023 · 0 comments
Open

Consider wider SQL aliases #31134

roji opened this issue Jun 25, 2023 · 0 comments

Comments

@roji
Copy link
Member

roji commented Jun 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants