Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Fail to remove Abp table prefix #7528


User avatar
0
antonis created

I am trying to change the Abp prefix from table names. I am using the following method

protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            modelBuilder.ChangeAbpTablePrefix<Tenant, Role, User>("");
            }

It successfully renames all tables except

AbpPersistedGrants

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @antonis

    Could you share your ABP version ? You can remove the prefix using the code below temporarily.

    modelBuilder.Entity<PersistedGrantEntity>().ToTable("PersistedGrants");