Skip to content

The "IdentityDbContext" caused the "SaveChanges" interceptor audit log to encounter a System.StackOverflowException issue. #1136

@3070705689

Description

@3070705689

In the public class IdentityDbContext : MultiTenantIdentityDbContext class, create a permission table:public class Permission : AuditableEntity

The errors that occur when using the following code:

public DbSet Permissions{ get; set; }

Permission? permission = await permissionRepository.FirstOrDefaultAsync(x => x.Id == input.Id, cancellationToken);
IdentityDbContext.Permissions.Remove(permission);
await identityDbContext.SaveChangesAsync(cancellationToken);

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions