protected override void Seed(IE_TaskTracker.Models.ApplicationDbContext context) { // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. AddUsers(context); }
void AddUsers(IE_TaskTracker.Models.ApplicationDbContext context) { var user = new ApplicationUser { UserName = "******" }; var um = new UserManager <ApplicationUser>( new UserStore <ApplicationUser>(context)); um.Create(user, "a1d2m3i4n5!"); }