ApplicationDbContext.cs 912 B

12345678910111213141516171819202122232425262728293031323334
  1. // ======================================
  2. // Author: Ebenezer Monney
  3. // Email: info@ebenmonney.com
  4. // Copyright (c) 2017 www.ebenmonney.com
  5. //
  6. // ==> Gun4Hire: contact@ebenmonney.com
  7. // ======================================
  8. using DAL.Models;
  9. using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
  10. using Microsoft.EntityFrameworkCore;
  11. using Microsoft.EntityFrameworkCore.Metadata;
  12. using OpenIddict;
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Linq;
  16. using System.Text;
  17. using System.Threading.Tasks;
  18. namespace DAL
  19. {
  20. public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string>
  21. {
  22. public ApplicationDbContext(DbContextOptions options) : base(options)
  23. { }
  24. protected override void OnModelCreating(ModelBuilder builder)
  25. {
  26. base.OnModelCreating(builder);
  27. }
  28. }
  29. }