using LINGYUN.Abp.DataProtectionManagement; using LINGYUN.Abp.DataProtectionManagement.EntityFrameworkCore; using LINGYUN.Abp.Saas.Editions; using LINGYUN.Abp.Saas.EntityFrameworkCore; using LINGYUN.Abp.Saas.Tenants; using LINGYUN.Abp.TextTemplating; using LINGYUN.Abp.TextTemplating.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.FeatureManagement; using Volo.Abp.FeatureManagement.EntityFrameworkCore; using Volo.Abp.PermissionManagement; using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.SettingManagement; using Volo.Abp.SettingManagement.EntityFrameworkCore; namespace LINGYUN.Abp.MicroService.AdminService; [ConnectionStringName("Default")] public class AdminServiceMigrationsDbContext : AbpDbContext, ISaasDbContext, ITextTemplatingDbContext, IFeatureManagementDbContext, ISettingManagementDbContext, IPermissionManagementDbContext, IAbpDataProtectionManagementDbContext { #region Entities from the modules public DbSet EntityTypeInfos { get; set; } public DbSet PermissionGroups { get; set; } public DbSet Permissions { get; set; } public DbSet PermissionGrants { get; set; } public DbSet Settings { get; set; } public DbSet SettingDefinitionRecords { get; set; } public DbSet FeatureGroups { get; set; } public DbSet Features { get; set; } public DbSet FeatureValues { get; set; } public DbSet TextTemplates { get; set; } public DbSet TextTemplateDefinitions { get; set; } public DbSet Editions { get; set; } public DbSet Tenants { get; set; } public DbSet TenantConnectionStrings { get; set; } #endregion public AdminServiceMigrationsDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.ConfigureSaas(); modelBuilder.ConfigureTextTemplating(); modelBuilder.ConfigureFeatureManagement(); modelBuilder.ConfigureSettingManagement(); modelBuilder.ConfigurePermissionManagement(); modelBuilder.ConfigureDataProtectionManagement(); } }