4 writes to Id
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
UserStoreGuidKeyTest.cs (1)
22
Id
= Guid.NewGuid();
UserStoreStringKeyTest.cs (1)
22
Id
= Guid.NewGuid().ToString();
UserStoreWithGenericsTest.cs (1)
305
Id
= Guid.NewGuid().ToString();
Microsoft.Extensions.Identity.Stores (1)
IdentityRole.cs (1)
21
Id
= Guid.NewGuid().ToString();
23 references to Id
Microsoft.AspNetCore.Identity.EntityFrameworkCore (11)
IdentityDbContext.cs (2)
142
b.HasKey(r => r.
Id
);
183
b.HasKey(r => r.
Id
);
RoleStore.cs (5)
199
return Task.FromResult(ConvertIdToString(role.
Id
)!);
271
return Roles.FirstOrDefaultAsync(u => u.
Id
.Equals(roleId), cancellationToken);
341
return await RoleClaims.Where(rc => rc.RoleId.Equals(role.
Id
)).Select(c => new Claim(c.ClaimType!, c.ClaimValue!)).ToListAsync(cancellationToken);
373
var claims = await RoleClaims.Where(rc => rc.RoleId.Equals(role.
Id
) && rc.ClaimValue == claim.Value && rc.ClaimType == claim.Type).ToListAsync(cancellationToken);
394
=> new TRoleClaim { RoleId = role.
Id
, ClaimType = claim.Type, ClaimValue = claim.Value };
UserStore.cs (4)
349
var userRole = await FindUserRoleAsync(user.Id, roleEntity.
Id
, cancellationToken);
370
join role in Roles on userRole.RoleId equals role.
Id
394
var userRole = await FindUserRoleAsync(user.Id, role.
Id
, cancellationToken);
616
where userrole.RoleId.Equals(role.
Id
)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
UserStoreGuidKeyTest.cs (1)
23
Name =
Id
.ToString();
UserStoreStringKeyTest.cs (1)
23
Name =
Id
;
UserStoreTest.cs (5)
315
var role1 = await manager1.FindByIdAsync(role.
Id
);
316
var role2 = await manager2.FindByIdAsync(role.
Id
);
346
var role2 = await manager2.FindByIdAsync(role.
Id
);
376
var role1 = await manager1.FindByIdAsync(role.
Id
);
377
var role2 = await manager2.FindByIdAsync(role.
Id
);
UserStoreWithGenericsTest.cs (2)
212
RoleId = role.
Id
,
258
return new IdentityRoleClaimWithIssuer { RoleId = role.
Id
, ClaimType = claim.Type, ClaimValue = claim.Value, Issuer = claim.Issuer };
Microsoft.Extensions.Identity.Stores (3)
RoleStoreBase.cs (2)
84
return Task.FromResult(ConvertIdToString(role.
Id
)!);
247
=> new TRoleClaim { RoleId = role.
Id
, ClaimType = claim.Type, ClaimValue = claim.Value };
UserStoreBase.cs (1)
1026
RoleId = role.
Id