PSTW_CentralizeSystem/DBContext/AuthDBContext.cs
2024-11-14 15:14:40 +08:00

24 lines
720 B
C#

using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
namespace PSTW_CentralSystem.DBContext
{
public class AuthDBContext : IdentityDbContext<IdentityUser, IdentityRole, string>
{
private readonly IWebHostEnvironment _hostingEnvironment;
public AuthDBContext(DbContextOptions<AuthDBContext> options, IWebHostEnvironment hostingEnvironment) : base(options)
{
_hostingEnvironment = hostingEnvironment;
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
}
}