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

RevEng: Use pluralizer with database names too #22145

Merged
1 commit merged into from
Aug 20, 2020
Merged

Conversation

bricelam
Copy link
Contributor

Fixes #12102

@bricelam bricelam requested a review from a team August 20, 2020 16:48
Comment on lines +162 to +171
for (i = commonPrefix.Length - 3; i >= 0; i--)
{
if (char.IsLetterOrDigit(commonPrefix[i]))
{
break;
}
}

return i != 0
? commonPrefix.Substring(0, i + 1)
Copy link
Contributor Author

@bricelam bricelam Aug 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to strip trailing _, -, and whitespace. Matches what the C# namer would do.

@ghost
Copy link

ghost commented Aug 20, 2020

Hello @bricelam!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit e725c80 into dotnet:release/5.0 Aug 20, 2020
@bricelam bricelam deleted the names branch August 20, 2020 18:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scaffold-dbcontext: Cannot combine -UseDataBaseNames with pluralizing
3 participants