AuthServerDbContext.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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.IdentityServer.EntityFrameworkCore;
  7. using Volo.Abp.PermissionManagement.EntityFrameworkCore;
  8. using Volo.Abp.SettingManagement.EntityFrameworkCore;
  9. using Volo.Abp.TenantManagement.EntityFrameworkCore;
  10. namespace AuthServer.Host.EntityFrameworkCore
  11. {
  12. public class AuthServerDbContext : AbpDbContext<AuthServerDbContext>
  13. {
  14. public AuthServerDbContext(DbContextOptions<AuthServerDbContext> options)
  15. : base(options)
  16. {
  17. }
  18. protected override void OnModelCreating(ModelBuilder modelBuilder)
  19. {
  20. base.OnModelCreating(modelBuilder);
  21. //modelBuilder.ConfigureIdentity();
  22. modelBuilder.ConfigureIdentityServer();
  23. //modelBuilder.ConfigureAuditLogging();
  24. //modelBuilder.ConfigurePermissionManagement();
  25. //modelBuilder.ConfigureSettingManagement();
  26. //modelBuilder.ConfigureTenantManagement();
  27. //modelBuilder.ConfigureFeatureManagement();
  28. }
  29. }
  30. }