Browse Source

Update EfCoreIdentityUserRepository.cs

pull/19853/head
maliming 2 years ago
parent
commit
8edeb698ce
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 9
      modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs

9
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));
} }
} }

Loading…
Cancel
Save