1.修改 MyProjectMigrationsDbContext中OnModelCreating方法中
builder.ConfigurePermissionManagement("Abp_"); builder.ConfigureSettingManagement("Abp_"); builder.ConfigureBackgroundJobs(o => o.TablePrefix = "Abp_"); builder.ConfigureAuditLogging("Abp_"); builder.ConfigureIdentity(o => o.TablePrefix = "Abp_"); builder.ConfigureTenantManagement("Abp_");
2.在Startup中ConfigureServices添加:
SettingManagementDbContext.TablePrefix = "Abp_"; PermissionManagementDbContext.TablePrefix = "Abp_"; BackgroundJobsDbContext.TablePrefix = "Abp_"; AbpAuditLoggingDbContext.TablePrefix = "Abp_"; IdentityDbContext.TablePrefix = "Abp_"; TenantManagementDbContext.TablePrefix = "Abp_";
原文地址:https://www.cnblogs.com/HUGO_CM/p/10919621.html
时间: 2024-10-31 02:50:55