Abp vNext 修改默认表前缀
Posted hugo_cm
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Abp vNext 修改默认表前缀相关的知识,希望对你有一定的参考价值。
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_";
以上是关于Abp vNext 修改默认表前缀的主要内容,如果未能解决你的问题,请参考以下文章
Abp Vnext3 vue-admin-template(二用户退出)
Abp vNext抽茧剥丝01 使用using临时更改当前租户
ABP Vnext 数据库表字段存在IsDeleted如何物理删除HardDeleteAsync