Open
Description
openedon Apr 7, 2021
Scaffold-DbContext is naming namespace wrong if -OutputDir
is filled with phrase containing space.
For example: Example Folder
OutputDir makes namespace ConsoleApp.Example Folder
, what is wrong for naming namespaces and can't be builded. It should be ConsoleApp.Example_Folder
.
Code
I made command through PMC like this:
Scaffold-DbContext "connectionString" MySql.EntityFrameworkCore -Tables some_tables_here -OutputDir "Example Folder" -Force
Command is working, but output classes and context have wrong namespace.
Include provider and version information
EF Core version: 5.0
Database provider: MySql.EntityFrameworkCore
Target framework: NET 5.0
Operating system:
IDE: Visual Studio 2019 16.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment