using LINGYUN.Abp.DataProtectionManagement; using LINGYUN.Abp.DataProtectionManagement.EntityFrameworkCore; using LINGYUN.Abp.Demo.Authors; using LINGYUN.Abp.Demo.Books; using LINGYUN.Abp.Demo.EntityFrameworkCore; using LINGYUN.Abp.Gdpr; using LINGYUN.Abp.Gdpr.EntityFrameworkCore; using LINGYUN.Abp.LocalizationManagement; using LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore; using LINGYUN.Abp.MessageService.Chat; using LINGYUN.Abp.MessageService.EntityFrameworkCore; using LINGYUN.Abp.MessageService.Groups; using LINGYUN.Abp.Notifications; using LINGYUN.Abp.Notifications.EntityFrameworkCore; using LINGYUN.Abp.Saas.Editions; using LINGYUN.Abp.Saas.EntityFrameworkCore; using LINGYUN.Abp.Saas.Tenants; using LINGYUN.Abp.TaskManagement; using LINGYUN.Abp.TaskManagement.EntityFrameworkCore; using LINGYUN.Abp.TextTemplating; using LINGYUN.Abp.TextTemplating.EntityFrameworkCore; using LINGYUN.Abp.WebhooksManagement; using LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore; using LINGYUN.Platform.Datas; using LINGYUN.Platform.EntityFrameworkCore; using LINGYUN.Platform.Layouts; using LINGYUN.Platform.Menus; using LINGYUN.Platform.Messages; using LINGYUN.Platform.Packages; using LINGYUN.Platform.Portal; using Microsoft.EntityFrameworkCore; using Volo.Abp.AuditLogging; using Volo.Abp.AuditLogging.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.DependencyInjection; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.FeatureManagement; using Volo.Abp.FeatureManagement.EntityFrameworkCore; using Volo.Abp.Identity; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.OpenIddict.Applications; using Volo.Abp.OpenIddict.Authorizations; using Volo.Abp.OpenIddict.EntityFrameworkCore; using Volo.Abp.OpenIddict.Scopes; using Volo.Abp.OpenIddict.Tokens; using Volo.Abp.PermissionManagement; using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.SettingManagement; using Volo.Abp.SettingManagement.EntityFrameworkCore; namespace LY.MicroService.Applications.Single.EntityFrameworkCore; [ReplaceDbContext(typeof(IAuditLoggingDbContext))] [ReplaceDbContext(typeof(IIdentityDbContext))] [ReplaceDbContext(typeof(IOpenIddictDbContext))] [ReplaceDbContext(typeof(ISaasDbContext))] [ReplaceDbContext(typeof(IFeatureManagementDbContext))] [ReplaceDbContext(typeof(ISettingManagementDbContext))] [ReplaceDbContext(typeof(IPermissionManagementDbContext))] [ReplaceDbContext(typeof(ITextTemplatingDbContext))] [ReplaceDbContext(typeof(ITaskManagementDbContext))] [ReplaceDbContext(typeof(IWebhooksManagementDbContext))] [ReplaceDbContext(typeof(IPlatformDbContext))] [ReplaceDbContext(typeof(ILocalizationDbContext))] [ReplaceDbContext(typeof(INotificationsDbContext))] [ReplaceDbContext(typeof(INotificationsDefinitionDbContext))] [ReplaceDbContext(typeof(IMessageServiceDbContext))] [ReplaceDbContext(typeof(IAbpDataProtectionManagementDbContext))] [ReplaceDbContext(typeof(IGdprDbContext))] [ReplaceDbContext(typeof(IDemoDbContext))] [ConnectionStringName("Default")] public class SingleMigrationsDbContext : AbpDbContext, IAuditLoggingDbContext, IIdentityDbContext, IOpenIddictDbContext, ISaasDbContext, IFeatureManagementDbContext, ISettingManagementDbContext, IPermissionManagementDbContext, ITextTemplatingDbContext, ITaskManagementDbContext, IWebhooksManagementDbContext, IPlatformDbContext, ILocalizationDbContext, INotificationsDbContext, INotificationsDefinitionDbContext, IMessageServiceDbContext, IAbpDataProtectionManagementDbContext, IGdprDbContext, IDemoDbContext { public SingleMigrationsDbContext(DbContextOptions options) : base(options) { } public DbSet AuditLogs { get; set; } public DbSet AuditLogExcelFiles { get; set; } public DbSet Users { get; set; } public DbSet Roles { get; set; } public DbSet ClaimTypes { get; set; } public DbSet OrganizationUnits { get; set; } public DbSet SecurityLogs { get; set; } public DbSet LinkUsers { get; set; } public DbSet UserDelegations { get; set; } public DbSet Sessions { get; set; } public DbSet Applications { get; set; } public DbSet Authorizations { get; set; } public DbSet Scopes { get; set; } public DbSet Tokens { get; set; } public DbSet Editions { get; set; } public DbSet Tenants { get; set; } public DbSet TenantConnectionStrings { get; set; } public DbSet FeatureGroups { get; set; } public DbSet Features { get; set; } public DbSet FeatureValues { get; set; } public DbSet Settings { get; set; } public DbSet SettingDefinitionRecords { get; set; } public DbSet PermissionGroups { get; set; } public DbSet Permissions { get; set; } public DbSet PermissionGrants { get; set; } public DbSet TextTemplates { get; set; } public DbSet TextTemplateDefinitions { get; set; } public DbSet BackgroundJobInfos { get; set; } public DbSet BackgroundJobAction { get; set; } public DbSet BackgroundJobLogs { get; set; } public DbSet WebhookSendRecord { get; set; } public DbSet WebhookGroupDefinitionRecords { get; set; } public DbSet WebhookDefinitionRecords { get; set; } public DbSet Menus { get; set; } public DbSet Layouts { get; set; } public DbSet RoleMenus { get; set; } public DbSet UserMenus { get; set; } public DbSet UserFavoriteMenus { get; set; } public DbSet Datas { get; set; } public DbSet DataItems { get; set; } public DbSet Packages { get; set; } public DbSet PackageBlobs { get; set; } public DbSet Enterprises { get; set; } public DbSet EmailMessages { get; set; } public DbSet SmsMessages { get; set; } public DbSet Resources { get; set; } public DbSet Languages { get; set; } public DbSet Texts { get; set; } public DbSet Notifications { get; set; } public DbSet UserNotifications { get; set; } public DbSet UserSubscribes { get; set; } public DbSet NotificationDefinitionGroupRecords { get; set; } public DbSet NotificationDefinitionRecords { get; set; } public DbSet UserMessages { get; set; } public DbSet GroupMessages { get; set; } public DbSet UserChatFriends { get; set; } public DbSet UserChatSettings { get; set; } public DbSet GroupChatBlacks { get; set; } public DbSet ChatGroups { get; set; } public DbSet UserChatGroups { get; set; } public DbSet UserChatCards { get; set; } public DbSet UserGroupCards { get; set; } public DbSet EntityTypeInfos { get; set; } public DbSet Requests { get; set; } public DbSet Books { get; set; } public DbSet Authors { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.ConfigureAuditLogging(); modelBuilder.ConfigureIdentity(); modelBuilder.ConfigureOpenIddict(); modelBuilder.ConfigureSaas(); modelBuilder.ConfigureFeatureManagement(); modelBuilder.ConfigureSettingManagement(); modelBuilder.ConfigurePermissionManagement(); modelBuilder.ConfigureTextTemplating(); modelBuilder.ConfigureTaskManagement(); modelBuilder.ConfigureWebhooksManagement(); modelBuilder.ConfigurePlatform(); modelBuilder.ConfigureLocalization(); modelBuilder.ConfigureNotifications(); modelBuilder.ConfigureNotificationsDefinition(); modelBuilder.ConfigureMessageService(); modelBuilder.ConfigureDataProtectionManagement(); modelBuilder.ConfigureGdpr(); modelBuilder.ConfigureDemo(); } }