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
...
@Alexct72 I tried with EF Core 2.0, I got it.
Check this, https://github.com/arichika/EFCore2.0-Scaffold-DBContext-CustomCandidateNamingService
you must have move to new class inherits
IDesignTimeServices
the methodConfigureDesignTimeServices()
.e.g. https://github.com/arichika/EFCore2.0-Scaffold-DBContext-CustomCandidateNamingService/blob/master/src/ScaffoldMyDb/MyScaffoldingDesignTimeServices.cs