title: Microsoft.AspNet.Identity - customize POCO class
body: <p>I am struggling to add a few fields to the standard ApplicationUser object with the code below. I have successfully run Migrations and i can see the database scheme is updated with the new fields in the database. I followed the tutorial at <a href="http://go.microsoft.com/fwlink/?LinkID=317594" rel="nofollow">http://go.microsoft.com/fwlink/?LinkID=317594</a></p>
  
  <pre><code>public class ApplicationUser : User
  {
  
      public string LegacyPassword { get; set; }
      public DateTime DateCreated { get; set; }
      public bool Activated { get; set; }
  
  }
  </code></pre>
  
  <p>The problem i experience is now when i try execute registration such as :</p>
  
  <pre><code> var u = new Test.Models.ApplicationUser() { UserName = userName, DateCreated = System.DateTime.Now, PassHash = "" };
              IdentityResult result = manager.Users.CreateLocalUser(u, Password.Text);
  </code></pre>
  
  <p>I get the following error when CreateLocalUser() executes...:</p>
  
  <p>An exception of type 'System.InvalidOperationException' occurred in mscorlib.dll but was not handled in user code</p>
  
  <p>Additional information: Mapping and metadata information could not be found for EntityType 'Test.Models.ApplicationUser'.</p>
  
  <p>I have tried recreating the migrations about 5/6 times and started a brand new project as well but i cannot get past this error.</p>
  
  <p>Any ideas?</p>