title: Creating Asp.net Identity user in Seed method of Db Initializer
body: <p>I have created my data layer with EF 6 code first and I am populating the db through <code>Seed</code> method of <code>EvInitializer</code> class inheriting from <code>DropCreateDatabaseIfModelChanges</code>. The implementation of <code>Seed</code> method is </p>
  
  <pre><code>protected override void Seed(EvContext context)
  {
     //Add other entities using context methods
     ApplicationUserManager manager = new ApplicationUserManager(new UserStore&lt;ApplicationUser&gt;(context));
     var user = new ApplicationUser { Email = "admin@myemail.com" ,UserName = "admin@myemail.com"};
     var result = await manager.CreateAsync(user, "Temp_123");//this line gives error. obviously await cannot be used in non- async method and I cannot make Seed async
  }
  </code></pre>
  
  <p>My question is how I can add a user in <code>Seed</code> method using <code>UserManager</code> class. when I change 
  <code>var result = awit manager.CreateAsync(user, "Temp_123");</code><br>
  to<br>
  <code>var result = manager.CreateAsync(user, "Temp_123").Result; //or .Wait</code><br>
  the application hangs indefinitely</p>