title: Auto generate models in mvc 4 database first?
body: <p>I created an mvc 4 web project using database first and entity framework but was surprised to see that default models were not generated automatically, is there a way to create them from my .edmx file or are there any other possibilities to save hand coding them?</p>
  
  <p>Any help would be much appreciated</p>
  
  <p>UPDATE: </p>
  
  <p>Sorry, should have mentioned I am looking for a solution to generate simple models with basic methods such as :</p>
  
  <pre><code>public class EditUserModel
  {
      public int ID { get; set; }
  
      [Required(ErrorMessage = "Forename is required")]
      public string Forename { get; set; }
  
      [Required(ErrorMessage = "Surname is required")]
      public string Surname { get; set; }
  
      [Required(ErrorMessage = "Username is required")]
      public string Username { get; set; }
  }
  </code></pre>