Skip to content
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

DbContext is placed in Models path when DbContext path is not specified #330

Closed
jasoneisen opened this issue Jan 3, 2020 · 5 comments
Closed

Comments

@jasoneisen
Copy link

When specifying a Model path and not a DbContext path, the DbContext is placed in the Models path rather than at the project root.

Steps to reproduce

Reverse Engineer Models & DbContext only specifying a Models path.

Further technical details

EF Core Power Tools version: 2.3.92.0

Database engine: SQL Server

Visual Studio version: 2019 (16.4.2)

@ErikEJ
Copy link
Owner

ErikEJ commented Jan 3, 2020

I think it is by design...

@jasoneisen
Copy link
Author

jasoneisen commented Jan 3, 2020

How would one specify to put the DbContext at the project root while supplying a Models path? I tried using "\" but it is still placed in the Models path.

@jasoneisen
Copy link
Author

I was just able to get it to work by using "."

If this is by design, documentation about this would be helpful.

@ErikEJ
Copy link
Owner

ErikEJ commented Jan 3, 2020

Thanks, I will link to this issue from the wiki post.

@ErikEJ
Copy link
Owner

ErikEJ commented Jan 3, 2020

Docs updated, thanks!

@ErikEJ ErikEJ closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants