ApplicationDbContext.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 DbSet<PowerMattersDetail> PowerMattersDetails { get; set; }
  23. public ApplicationDbContext(DbContextOptions options) : base(options)
  24. { }
  25. protected override void OnModelCreating(ModelBuilder builder)
  26. {
  27. builder.Entity<PowerMattersDetail>();
  28. base.OnModelCreating(builder);
  29. }
  30. }
  31. }