private void CreateUser(VNWDbContext context) { var manager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new VNWDbContext())); var roleManager = new RoleManager <IdentityRole>(new RoleStore <IdentityRole>(new VNWDbContext())); var user = new ApplicationUser() { UserName = "******", Email = "*****@*****.**", EmailConfirmed = true, BirthDay = DateTime.Now, FullName = "Lê Khanh" }; manager.Create(user, "123654$"); }
public ApplicationUserStore(VNWDbContext context) : base(context) { }
public VNWDbContext Init() { return(dbContext ?? (dbContext = new VNWDbContext())); }