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_";

 

posted @ 2019-05-24 18:18  HUGO.CM  阅读(1200)  评论(0编辑  收藏  举报