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.