efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Scaffold - DbContext rename entity class name and field names

Open JuanIrigoyen opened this issue 10 years ago • 1 comments

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.

JuanIrigoyen avatar Jul 01 '16 23:07 JuanIrigoyen

Duplicate of #5947 and https://github.com/aspnet/EntityFramework/issues/3987

natemcmaster avatar Jul 01 '16 23:07 natemcmaster