From 439ee265dc1af3734b940c28270eda26dac43e69 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Sat, 7 Jan 2023 10:08:33 +0000 Subject: [PATCH] Update improvements.md --- docs/errata/improvements.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/errata/improvements.md b/docs/errata/improvements.md index a09fa3f..c3a7ecf 100644 --- a/docs/errata/improvements.md +++ b/docs/errata/improvements.md @@ -25,11 +25,9 @@ dir AutoGenModels --namespace WorkingWithEFCore.AutoGen --data- annotations --context Northwind ``` -Here is the same command as a single line to make it easier to copy and paste: +I recommend that you type from the print book or copy and paste long commands like this from the eBook into a plain text editor like Notepad. Then make sure that the whole command is properly formatted as a single line with correct spacing, before you then copy and paste it to the command-line. Copying and pasting directly from the eBook is likely to include newline characters and missing spaces and so on that break the command. + +For convenience, here is the same command as a single line to make it easier to copy and paste: ``` dotnet ef dbcontext scaffold "Filename=Northwind.db" Microsoft.EntityFrameworkCore.Sqlite --table Categories --table Products --output-dir AutoGenModels --namespace WorkingWithEFCore.AutoGen --data-annotations --context Northwind ``` - -I recommend that you copy and paste long commands like this from the eBook into a plain text editor like Notepad, and then make sure that the whole command is properly formatted as a single line, before you then copy and paste it to the command-line. - -Copying and pasting directly from the ebook is likely to include newline characters and missing spaces and so on that break the command.