临河任务调度
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 line
1.1KB

  1. using Microsoft.EntityFrameworkCore;
  2. using Volo.Abp.AuditLogging.EntityFrameworkCore;
  3. using Volo.Abp.EntityFrameworkCore;
  4. using Volo.Abp.FeatureManagement.EntityFrameworkCore;
  5. using Volo.Abp.Identity.EntityFrameworkCore;
  6. using Volo.Abp.OpenIddict.EntityFrameworkCore;
  7. using Volo.Abp.PermissionManagement.EntityFrameworkCore;
  8. using Volo.Abp.SettingManagement.EntityFrameworkCore;
  9. using Volo.Abp.TenantManagement.EntityFrameworkCore;
  10. namespace Himp.TaskScheduling.EntityFrameworkCore;
  11. public class AuthServerDbContext : AbpDbContext<AuthServerDbContext>
  12. {
  13. public AuthServerDbContext(DbContextOptions<AuthServerDbContext> options)
  14. : base(options)
  15. {
  16. }
  17. protected override void OnModelCreating(ModelBuilder modelBuilder)
  18. {
  19. base.OnModelCreating(modelBuilder);
  20. modelBuilder.ConfigurePermissionManagement();
  21. modelBuilder.ConfigureSettingManagement();
  22. modelBuilder.ConfigureAuditLogging();
  23. modelBuilder.ConfigureIdentity();
  24. modelBuilder.ConfigureOpenIddict();
  25. modelBuilder.ConfigureFeatureManagement();
  26. modelBuilder.ConfigureTenantManagement();
  27. }
  28. }