-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
C# modernization/cleanup in database model factories #29622
Conversation
src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs
Outdated
Show resolved
Hide resolved
return command.ExecuteScalar() is string collation | ||
? collation | ||
: null; | ||
command.CommandText = "SELECT SERVERPROPERTY('Collation');"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the line break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to have it? This is a self-contained command with a single SELECT, is there a reason to have a leading line break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readability like all other statements in the class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you saying you think a leading newline improves readability in all SQL statements, or is there something special here? Because we certainly don't do it for queries, updates or anything else...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rest my case
src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs
Outdated
Show resolved
Hide resolved
9a64128
to
b5e9ae6
Compare
@ErikEJ rebased this and added some cleanup. Can you please give this a quick review to make sure it preserves your views changes? |
LGTM - I will give it a spin against my CRM instance when it is in the daily build. |
No description provided.