title: How to create ASP.NET Identity users on startup/manually with the Web template
body: <p>I don't seem to get it. I just want to create some users from the VS2015 Web core template (ideally from a core console app but that seems to require more setup) </p>
  
  <p>So I call Initialize from the Startup.cs</p>
  
  <p>UserManager is NULL so it does not work. What am I missing?</p>
  
  <p>DbInitializer.Initialize(context);</p>
  
  <pre><code>  public static class DbInitializer
  {
      public static UserManager&lt;ApplicationUser&gt; UserManager { get; private set; }
  
  
      public static async void Initialize(ApplicationDbContext context)
      {
          var user = new ApplicationUser { UserName = "abc@xxx.com" };
          IdentityResult result = await UserManager.CreateAsync(user, "password");
  
  
          //var ttime = DateTime.Now;
          //for (int j = 0; j &lt; 100; j++)
          //{
          //    var start = DateTime.Now;
  
          //    for (int i = 0; i &lt; 100; i++)
          //    {
          //        var email = "user" + ((j * 100) + i) + "@constoso.com";
          //        var user = new ApplicationUser { UserName = "Bob", Email = email };
          //        var result = await UserManager.CreateAsync(user, "ccc");
          //    }
          //}
      }
  }
  </code></pre>