title: How to prevent Entity Framework Core 2.0 from Renaming Tables and Columns in Generated Classes (Database First)
body: <p>I have been working on an ASP.NET MVC Core 2.0 project (targeting .NET Core 2.0) that needs to make use of Entity Framework. The database to be used already exists and I can't change it. I have added all the required references to Entity Framework Core 2.0.</p>
  
  <p>However, when I run the following scaffolding command from the Nuget Package Manager Console, I get POCO model classes for the tables with different capitalization as compared to the original tables. In addition to other differences, columns with underlines in their names are represented by properties without the underlines. </p>
  
  <p>How can I force the scaffolding to leave all table and column names as is when the POCO model classes are generated?</p>
  
  <p>Example of scaffold command. 
  Scaffold-DbContext "Server= Info;Database=Vehicles;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models –force</p>
  
  <p>(First time posting to Stack Overflow. Thanks for your help.)</p>