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

[Feature] Add an option to delete unused files #560

Open
ArnaudB88 opened this issue Apr 17, 2024 · 0 comments · May be fixed by #561
Open

[Feature] Add an option to delete unused files #560

ArnaudB88 opened this issue Apr 17, 2024 · 0 comments · May be fixed by #561

Comments

@ArnaudB88
Copy link

In our company, we use your generator for many years now with many developers. Over the years, we added some features so it works better with our solutions. As a sign of appreciation, I want to suggest some features because I think it will help some other developers as well.

Feature description:

Add an option to delete files which don't have a matching database table

Feature motivation & example usage:

When a table is removed or renamed, the efg tool currently doesn't remove the old generated files. The developer should cleanup his files manually, which can be forgotten.

The option is a boolean, true enables the feature.

YAML usage:

data:
  entity:
    deleteUnusedFiles: true
  mapping:
    deleteUnusedFiles: true

Please review the feature request and evaluate if you think this is an addition to your repo.
(pull request will be added)

Thanks

ArnaudB88 pushed a commit to ArnaudB88/EntityFrameworkCore.Generator that referenced this issue Apr 17, 2024
@ArnaudB88 ArnaudB88 linked a pull request Aug 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant