I have a project that has been a work in progress for several years. It is continually growing and changing. And our data layer project is now 10 times the size of any other project, and takes about 5 minutes to build on a pretty beefy dev box.
What stands out when I take a quick look through the project folders is that the data layer project is using Entity Framework Core, and it has a zillion migration scripts, each of which comes along with what appears to be a snapshot of the database schema in files called MigrationName.designer.cs
.
This is very quaint and all, so I can look back to April 2018 (when we made our move to EF Core) and sip a beer with my colleagues as we reminisce about what our schema looked like then, and how very far we've come since then. But seriously, what the heck do we need all these dumb historical .designer.cs
files for? Every time we make a migration, it's another 800KB of bloat in the codebase, and while I'm sure it doesn't translate to quite that much in the binaries, it's gotta have some cost. We're sure feeling it every time we have to compile.
Why do we need these files? Can we delete them?