From 1db647870d925a3ea8f3c19fe6c6305d036d5abc Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Tue, 14 Mar 2023 10:22:26 +0000 Subject: [PATCH] Update command-lines.md --- docs/command-lines.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/command-lines.md b/docs/command-lines.md index f99c965..5f4b7fb 100644 --- a/docs/command-lines.md +++ b/docs/command-lines.md @@ -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