我有以下使用CreateAsync方法创建新用户的简单代码。代码不会抛出任何错误,但也不会更新数据库。因此,我不知道如何调试这段代码并找到错误。有什么帮助吗?IdentityResult> Create(ApplicationUser user, string password) IdentityResult result = await _userManager.CreateAsyncthere was an exception
我检查了这些表,更新了Identity.AspNetUsers表,更新了Identity.Roles表,但是Identity.UserRoles没有更新。emailStore.SetEmailAsync(user, Input.Email, CancellationToken.None);
var result = await _userManager.CreateAsync