From f9bea05b699e9b5745ef09facbe34d170f0a3a81 Mon Sep 17 00:00:00 2001 From: lajones Date: Sun, 3 May 2020 16:07:22 -0700 Subject: [PATCH] State that --namespace and --context-namespace only available in EFCore 5.0. --- entity-framework/core/managing-schemas/scaffolding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity-framework/core/managing-schemas/scaffolding.md b/entity-framework/core/managing-schemas/scaffolding.md index 24d2a320cd..42ac3911b8 100644 --- a/entity-framework/core/managing-schemas/scaffolding.md +++ b/entity-framework/core/managing-schemas/scaffolding.md @@ -107,7 +107,7 @@ Scaffold-DbContext ... -ContextDir Data -OutputDir Models dotnet ef dbcontext scaffold ... --context-dir Data --output-dir Models ``` - By default, the namespace will be the root namespace plus the names of any subdirectories under the project's root directory. However you can override the namespace for all output classes by using `-Namespace` (PMC) or `--namespace` (CLI). You can also override the namespace for just the DbContext class using `-ContextNamespace` (PMC) or `--context-namespace` (CLI). + By default, the namespace will be the root namespace plus the names of any subdirectories under the project's root directory. However, in EFCore 5.0, you can override the namespace for all output classes by using `-Namespace` (PMC) or `--namespace` (CLI). You can also override the namespace for just the DbContext class using `-ContextNamespace` (PMC) or `--context-namespace` (CLI). ``` powershell Scaffold-DbContext ... -Namespace Your.Namespace -ContextNamespace Your.DbContext.Namespace