Template
19 lines
584 B
C#
19 lines
584 B
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using RT.Domain.Entities;
|
|
using RT.Domain.Identity;
|
|
|
|
namespace RT.Infrastructure.Data;
|
|
|
|
public class AppDbContext(DbContextOptions<AppDbContext> options)
|
|
: IdentityDbContext<ApplicationUser>(options)
|
|
{
|
|
public DbSet<RefreshToken> RefreshTokens => Set<RefreshToken>();
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
modelBuilder.ApplyConfigurationsFromAssembly(typeof(AppDbContext).Assembly);
|
|
}
|
|
}
|