using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CPRNIMS.Infrastructure.Entities.Account; using Microsoft.EntityFrameworkCore; namespace CPRNIMS.Infrastructure.Database { public class AuhorizationDbContext : IdentityDbContext { public AuhorizationDbContext(DbContextOptions options) : base(options) { } public DbSet AuthorizeRoles { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity(entity => { entity.ToTable("Roles"); // Specify the table name for roles }); } } }