title: Adding a MVC 4 controller using entity framework 5 database first
body: <p>I'm trying to configure an MVC 4 application using EF 5 against the System.Web.Providers Membership DB.  The ADO.NET Entity Data Model appears correct.  The classes generated by the EF 5.x code generator look ok, but do not have a [Key] attribute.  When I try to create a User Controller, I get the following error:</p>
  
  <hr>
  
  <h2>Microsoft Visual Studio</h2>
  
  <p>Unable to retrieve metadata for 'Citrius.Admin.User'. One or more validation errors were detected during model generation: </p>
  
  <pre>
  \tSystem.Data.Entity.Edm.EdmEntityType: : EntityType 'Membership' has no key defined. Define the key for this EntityType.
  \tSystem.Data.Entity.Edm.EdmEntityType: : EntityType 'Profile' has no key defined. Define the key for this EntityType.
  \tSystem.Data.Entity.Edm.EdmEntitySet: EntityType: EntitySet 'Memberships' is based on type 'Membership' that has no keys defined.
  \tSystem.Data.Entity.Edm.EdmEntitySet: EntityType: EntitySet 'Profiles' is based on type 'Profile' that has no keys defined.</pre>
  
  <p>I thought I saw a walkthrough of this, using these versions, but cannot find it.  I've tried to find a solution but all the examples are of previous versions.</p>
  
  <p>Am I too far out on the bleeding edge??  Any help would be appreciated...</p>