AuthServerDbContext.cs 578 B

12345678910111213141516171819202122
  1. using Microsoft.EntityFrameworkCore;
  2. using Volo.Abp.EntityFrameworkCore;
  3. using Volo.Abp.OpenIddict.EntityFrameworkCore;
  4. namespace AuthServer.EntityFrameworkCore
  5. {
  6. public class AuthServerDbContext : AbpDbContext<AuthServerDbContext>
  7. {
  8. public AuthServerDbContext(DbContextOptions<AuthServerDbContext> options)
  9. : base(options)
  10. {
  11. }
  12. protected override void OnModelCreating(ModelBuilder modelBuilder)
  13. {
  14. base.OnModelCreating(modelBuilder);
  15. modelBuilder.ConfigureOpenIddict();
  16. }
  17. }
  18. }