How to customize naming convention of EF Core scaffolding in 1.0.0/preview2.
Warning: this uses internal APIs which are not officially supported. Future releases may break this.
On command line
dotnet ef dbcontext scaffold "Server=(localdb)\mssqllocaldb;Database=Northwind;Integrated Security=true" Microsoft.EntityFrameworkCore.SqlServer
Output
Project snake (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Naming request: Order_Details
Naming request: Photo
...
I tried with EF Core 2.0 but I did not work.
I used the following instruction:
Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=NameDatabase;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models