Update README file.
This commit is contained in:
parent
25ede5cc28
commit
23a75282c1
11
README.md
11
README.md
@ -31,6 +31,17 @@ Create a migration, inside of the Console project, referring to the Data project
|
||||
|
||||
`dotnet ef migrations add InitialMigration --startup-project ./ --project ../EntityFrameworkCore.Data`
|
||||
|
||||
Update the database:
|
||||
|
||||
`dotnet ef database update --startup-project ./ --project ../EntityFrameworkCore.Data`
|
||||
|
||||
Database-first scaffolding example: *(no need for escape slashes)*
|
||||
|
||||
`Scaffold-DbContext 'connection-string' Microsoft.EntityFrameworkCore.SqlServer -ContextDir ScaffoldDbContext -OutputDir ScallfoldModels`
|
||||
|
||||
`dotnet ef dbcontext scaffold "connection-string" Microsoft.EntityFrameworkCore.SqlServer --context-dir ScaffoldDbContext --output-dir ScaffoldModels --startup-project ./ --project ..\EntityFrameworkCore.Data\`
|
||||
|
||||
Using `-force` parameter to force overrides when scaffolding.
|
||||
|
||||
## Links
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user