efcore
efcore copied to clipboard
Scaffold - DbContext rename entity class name and field names
In the previous version when you run the Scaffold - DbContext command this generated the names of tables and fields as they exist in SQL Server, for example if the table is called 'Customer_type' the entity class is called 'Customer_type' but in the last version Scaffold - DbContext renames the table from 'Customer_type' to 'CustomerType' , the same behavior also applies to the fields, there is a way around this behavior and that the names of entities and fields are as before, the same as the names of the database.
Duplicate of #5947 and https://github.com/aspnet/EntityFramework/issues/3987