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

猜你喜欢

转载自www.cnblogs.com/HUGO_CM/p/10919621.html