2 writes to UserId
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
220return new IdentityUserClaimWithIssuer { UserId = user.Id, ClaimType = claim.Type, ClaimValue = claim.Value, Issuer = claim.Issuer };
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
69var userClaim = new TUserClaim { UserId = user.Id };
11 references to UserId
Microsoft.AspNetCore.Identity.EntityFrameworkCore (10)
IdentityUserContext.cs (2)
196b.HasMany<TUserClaim>().WithOne().HasForeignKey(uc => uc.UserId).IsRequired(); 289b.HasMany<TUserClaim>().WithOne().HasForeignKey(uc => uc.UserId).IsRequired();
UserOnlyStore.cs (4)
296return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 333var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 355var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 473join user in Users on userclaims.UserId equals user.Id
UserStore.cs (4)
411return await UserClaims.Where(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken); 448var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 470var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 588join user in Users on userclaims.UserId equals user.Id
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserOnlyCustomContextTest.cs (1)
37b.HasMany<IdentityUserClaim<string>>().WithOne().HasForeignKey(uc => uc.UserId).IsRequired();