1 write to Id
Microsoft.Extensions.Identity.Stores (1)
IdentityUser.cs (1)
21Id = Guid.NewGuid().ToString();
36 references to Id
Microsoft.AspNetCore.Identity.EntityFrameworkCore (31)
IdentityUserContext.cs (3)
206b.HasKey(u => u.Id); 317b.HasKey(u => u.Id); 413b.HasKey(u => u.Id);
UserOnlyStore.cs (12)
300return Users.SingleOrDefaultAsync(u => u.Id.Equals(userId), cancellationToken); 339return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 376var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 398var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 438var entry = await FindUserLoginAsync(user.Id, loginProvider, providerKey, cancellationToken); 458var userId = user.Id; 516join user in Users on userclaims.UserId equals user.Id 533=> UserTokens.FindAsync(new object[] { user.Id, loginProvider, name }, cancellationToken).AsTask(); 567UserId = user.Id, 652var userId = user.Id; 697var passkey = await FindUserPasskeyAsync(user.Id, credentialId, cancellationToken).ConfigureAwait(false); 715var passkey = await FindUserPasskeyAsync(user.Id, credentialId, cancellationToken).ConfigureAwait(false);
UserStore.cs (16)
327return Users.SingleOrDefaultAsync(u => u.Id.Equals(userId), cancellationToken); 394var userRole = await FindUserRoleAsync(user.Id, roleEntity.Id, cancellationToken); 413var userId = user.Id; 439var userRole = await FindUserRoleAsync(user.Id, role.Id, cancellationToken); 456return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 493var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 515var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 555var entry = await FindUserLoginAsync(user.Id, loginProvider, providerKey, cancellationToken); 575var userId = user.Id; 633join user in Users on userclaims.UserId equals user.Id 660join user in Users on userrole.UserId equals user.Id 678=> UserTokens.FindAsync(new object[] { user.Id, loginProvider, name }, cancellationToken).AsTask(); 712UserId = user.Id, 797var userId = user.Id; 842var passkey = await FindUserPasskeyAsync(user.Id, credentialId, cancellationToken).ConfigureAwait(false); 860var passkey = await FindUserPasskeyAsync(user.Id, credentialId, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Identity.Stores (5)
UserStoreBase.cs (5)
69var userClaim = new TUserClaim { UserId = user.Id }; 84UserId = user.Id, 103UserId = user.Id, 121return Task.FromResult(ConvertIdToString(user.Id)!); 1025UserId = user.Id,