title: ApplicationUser - how do I use it? what do I need to put in my using clauses?
body: <p>I am trying to follow this tutorial but I'm stuck in the area where it tries to add ApplicationUser based code.  The roles section.</p>
  
  <p><a href="http://www.windowsazure.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database/">dotnet deploy db based MVC site to azure</a></p>
  
  <p><strong>I did include these lines:</strong></p>
  
  <pre><code>    using Microsoft.AspNet.Identity;
  using Microsoft.AspNet.Identity.EntityFramework;
  </code></pre>
  
  <p><strong>My compile error</strong> </p>
  
  <p><code>Error  1   The type or namespace name 'ApplicationUser' could not be found (are you missing a using directive or an assembly reference?)   c:\users\blah\documents\visual studio 2013\Projects\blah\blah\Migrations\Configuration.cs   96  38  blah</code></p>
  
  <p><strong>edit:
  here's the whole snippet of code:</strong></p>
  
  <pre><code> bool AddUserAndRole(ContactManager.Models.ApplicationDbContext context)
   {
      IdentityResult ir;
      var rm = new RoleManager&lt;IdentityRole&gt;
          (new RoleStore&lt;IdentityRole&gt;(context));
      ir = rm.Create(new IdentityRole("canEdit"));
      var um = new UserManager&lt;ApplicationUser&gt;(
          new UserStore&lt;ApplicationUser&gt;(context));
      var user = new ApplicationUser()
      {
         UserName = "user1",
      };
      ir = um.Create(user, "Passw0rd1");
      if (ir.Succeeded == false)
         return ir.Succeeded;
      ir = um.AddToRole(user.Id, "canEdit");
      return ir.Succeeded;
   }
  </code></pre>