| 123456789101112131415161718192021222324252627282930313233343536 |
- // ======================================
- // Author: Ebenezer Monney
- // Email: info@ebenmonney.com
- // Copyright (c) 2017 www.ebenmonney.com
- //
- // ==> Gun4Hire: contact@ebenmonney.com
- // ======================================
- using DAL.Models;
- using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Metadata;
- using OpenIddict;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DAL
- {
- public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string>
- {
- public DbSet<PowerMattersDetail> PowerMattersDetails { get; set; }
- public ApplicationDbContext(DbContextOptions options) : base(options)
- { }
- protected override void OnModelCreating(ModelBuilder builder)
- {
- builder.Entity<PowerMattersDetail>();
- base.OnModelCreating(builder);
- }
- }
- }
|