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

Add option to skip views to Scaffold-dbcontext #21283

Open
Tracked by #22948
vocko opened this issue Jun 16, 2020 · 4 comments
Open
Tracked by #22948

Add option to skip views to Scaffold-dbcontext #21283

vocko opened this issue Jun 16, 2020 · 4 comments
Labels
area-scaffolding consider-for-next-release customer-reported punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Milestone

Comments

@vocko
Copy link

vocko commented Jun 16, 2020

When running Scaffold-dbcontext, classes for all existing tables and views are created. I only want to generate classes for existing tables in the database and omit all the views. The only possible workaround is to manually pick which tables to use. This is not very useful for large databases.

You can omit all tables by passing an empty -Tables parameter. Same should be possible for views.

@ErikEJ
Copy link
Contributor

ErikEJ commented Jun 16, 2020

@vocko FYI: EF Core Power Tools has a UI for table/view selection, and persists the selection.

@thewilli
Copy link

@ErikEJ EF Core Power Tools has a UI for table/view selection, and persists the selection.

true, but it only applies to those who are using Visual Studio 😞

@vocko
Copy link
Author

vocko commented Jun 16, 2020

@vocko FYI: EF Core Power Tools has a UI for table/view selection, and persists the selection.

Thanks Erik, I was using console to run it, but I have Visual Studio, will try the Power Tools. However, I still think this can't be too much work to add and will bring quite some value.

@ErikEJ
Copy link
Contributor

ErikEJ commented Jun 27, 2023

@vocko EF Core Power Tools is now available as a command line tool

@bricelam bricelam removed their assignment Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-scaffolding consider-for-next-release customer-reported punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Projects
None yet
Development

No branches or pull requests

5 participants