mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-01-07 00:29:58 +01:00
Update command-lines.md
This commit is contained in:
parent
060b9787d9
commit
1db647870d
|
|
@ -312,9 +312,11 @@ dotnet ef dbcontext scaffold "Filename=../Northwind.db" Microsoft.EntityFramewor
|
|||
|
||||
Creating the EF Core model for the Northwind database:
|
||||
```
|
||||
dotnet ef dbcontext scaffold "Data Source=.;Initial Catalog=Northwind;Integrated Security=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace Packt.Shared --data-annotations
|
||||
dotnet ef dbcontext scaffold "Data Source=.;Initial Catalog=Northwind;Integrated Security=true;TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace Packt.Shared --data-annotations
|
||||
```
|
||||
|
||||
> If you do not have a "full" edition of SQL Server installed with a default instance then you will need to changed the `.` to the correct `servername\instancename`.
|
||||
|
||||
# Chapter 13 - Building Websites Using ASP.NET Core Razor Pages
|
||||
|
||||
## Page 564 - Testing and securing the website
|
||||
|
|
|
|||
Loading…
Reference in a new issue