Released a tool for .NET Core which optimizes the default output of .NET’s “DB First” entity class file generator.
It offers a more flexible re-generated DbContext.cs file and you can simply append it to your existing DB scaffolding command.
Optimizes generated DbContext output of “dotnet ef dbcontext scaffold”:
- Makes DB schema changeable at runtime”
- Removes OnConfiguring method (including connectionString), so you can implement your own partial OnConfiguring method outside the generated context.
- Optional parameter –winforms optimizes all generated .cs files in the context file’s folder for usage in Windows Forms (grids etc).
Read more and find the latest infos on Github.
Latest commits:
- Merge pull request #1 from ITaluone/fix-for-sqlite-scaffold Fix for sqlite scaffold
- Fix for SQLite-DataSource file + new binaries for .NET Core 3.1 + Add `--no-schema` cli option
- updated compiled .dll and .exe
- Update Program.cs Added alternative schema/database name lookup
- updated code comments
- added --winforms parameter for further optimization
- Updated readme
- Updated readme
- Init
- Initial commit
Comments