-
Notifications
You must be signed in to change notification settings - Fork 2k
remove literal PW #5016
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
remove literal PW #5016
Changes from 4 commits
1dc4c61
986b0bc
127beb0
2977e2e
2c5b7c1
cbb039a
d03a7c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -262,7 +262,9 @@ dotnet ef dbcontext scaffold Name=ConnectionStrings:Blogging Microsoft.EntityFra | |
| The following example skips scaffolding an `OnConfiguring` method. This can be useful when you want to configure the DbContext outside of the class. For example, ASP.NET Core apps typically configure it in Startup.ConfigureServices. | ||
|
|
||
| ```dotnetcli | ||
| dotnet ef dbcontext scaffold "Server=(localdb)\mssqllocaldb;Database=Blogging;User Id=myUsername;Password=myPassword;" Microsoft.EntityFrameworkCore.SqlServer --no-onconfiguring | ||
| dotnet ef dbcontext scaffold "Server=(localdb)\mssqllocaldb;Database=Blogging;User Id=myUsername;Password=\0;" Microsoft.EntityFrameworkCore.SqlServer --no-onconfiguring | ||
|
Rick-Anderson marked this conversation as resolved.
Outdated
|
||
|
|
||
| In the preceding code, replace `\0` with a valid strong password. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's probably still a valid password. How about I use
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not simply
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because that's a valid PW and can be copy/pasted. And customer copy/paste.
Rick-Anderson marked this conversation as resolved.
Outdated
|
||
| ``` | ||
|
|
||
| ## `dotnet ef dbcontext script` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.