Browse Source
Update EfCoreIdentityUserRepository.cs
pull/19853/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
4 additions and
5 deletions
-
modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs
|
|
@ -152,11 +152,10 @@ public class EfCoreIdentityUserRepository : EfCoreRepository<IIdentityDbContext, |
|
|
if (userClaims.Any()) |
|
|
if (userClaims.Any()) |
|
|
{ |
|
|
{ |
|
|
(await GetDbContextAsync()).Set<IdentityUserClaim>().RemoveRange(userClaims); |
|
|
(await GetDbContextAsync()).Set<IdentityUserClaim>().RemoveRange(userClaims); |
|
|
} |
|
|
if (autoSave) |
|
|
|
|
|
{ |
|
|
if (autoSave) |
|
|
await dbContext.SaveChangesAsync(GetCancellationToken(cancellationToken)); |
|
|
{ |
|
|
} |
|
|
await dbContext.SaveChangesAsync(GetCancellationToken(cancellationToken)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|