Update command-lines.md

This commit is contained in:
Mark J Price 2023-03-14 10:22:26 +00:00
parent 060b9787d9
commit 1db647870d

View file

@ -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