-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaffolding generates wrong namespace #12176
Comments
What is the command being run? |
C:\Git\NPBOverrides\NPBOverrides>dotnet ef dbcontext scaffold -o ..\NPBOverrides Versions: |
#9787 is fixed in 2.1 release. Are you sure you are using 2.1 version of EF Core? It should not have above issue. The command you shared is scaffolding model outside of current project directory (notice I am unable to reproduce this issue in 2.1 packages using the details you shared. |
My error sorry. I upgraded EntityFrameworkCore packages to 2.1.0 however this did not upgrade package Microsoft.EntityFrameworkCore.Tools.DotNet so above comments are actually related to 2.0.3 only. After upgrading to 2.1.0-preview1-final I get this: Expected: Actual: Same command being run as previous.
|
|
Duplicate of #9723 |
Marking as duplicate since in 2.1 version, we would be using default namespace if the output dir is outside of current project dir. |
Looks like same issue reported here.
Expected:
namespace NPBOverrides.RiskDB.Model
Actual:
namespace NPBOverrides.RiskDB_Model
The text was updated successfully, but these errors were encountered: