title: Control table names Entity Framework Generate Database from Model
body: <p>I was working with entity framework in a database first style. Each time I wanted to update my edmx file I did just that, ran update model.</p>
  
  <p>The problem I now have is that I've lost my database (long boring story, it was on a disk that's been formatted and I don't have a backup). I thought I would be able to use the 'Generate Database from Model' option to at the least get the structure of my database back. The problem I have is that the tool automatically pluralises all the table names, so <code>Cost</code> becomes <code>Costs</code> and so on. This breaks the EF model as it is expecting the table <code>Cost</code> so I can no longer run an 'Update Model from Database' as the table <code>Cost</code> does not exist. How can I control the table tables that are used when generating a database from a model?</p>