title: Changing Users Context
body: <p>I'm using the MVC4 Internet Application and I am trying to change the account model to use my context. I cannot seem to get it to work. I tried to delete the context and include the user profile in my context and I could log on etc but when I check for profiles by user id it returns a null value. </p>
  
  <pre><code>public DbSet&lt;FightCard&gt; FightCards { get; set; }
  public DbSet&lt;Fight&gt; Fights { get; set; }
  public DbSet&lt;Fighter&gt; Fighters { get; set; }
  public DbSet&lt;UserProfile&gt; UserProfiles { get; set; }
  
  [Table("UserProfile")]
  public class UserProfile
  {
      [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
      public int UserId { get; set; }
      public string UserName { get; set; }
  
  }
  </code></pre>
  
  <p>When I try to do this:</p>
  
  <pre><code>public ActionResult Profile(int id)
      {
          UserProfile profile = uc.UserProfiles.Find(id);
          ViewBag.Name = profile.UserName;
      }
  </code></pre>
  
  <p>I get a null value return. Anyone know how to successfully use the simple membership with a different context?</p>