20 lines
910 B
C#
20 lines
910 B
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
|
|
|
|
namespace OpenWarehouse.auth.api.Data
|
|
{
|
|
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string>, IDataProtectionKeyContext
|
|
{
|
|
|
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
public virtual DbSet<ApplicationUser> ApplicationUsers { get; set; }
|
|
public virtual DbSet<ApplicationRole> ApplicationRoles { get; set; }
|
|
public DbSet<ApplicationUserTokenRepository> ApplicationUserTokenRepositories { get; set; }
|
|
public DbSet<RegisterToken> RegisterTokens { get; set; }
|
|
public DbSet<RolePrivilage> RolePrivilages { get; set; }
|
|
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
|
|
}
|
|
} |