using CodeLiturgy.Data.Application.Users;
using BlueWest.EfMethods;
using CodeLiturgy.Domain.Model;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace CodeLiturgy.Domain
{
///
/// Application User Db Context
///
public class ApplicationUserDbContext : IdentityDbContext<
ApplicationUser,
ApplicationRole,
string,
ApplicationUserClaim,
ApplicationUserRole,
ApplicationUserLogin,
ApplicationRoleClaim,
ApplicationUserToken>
{
///
public sealed override DbSet UserClaims { get; set; }
///
public sealed override DbSet UserRoles { get; set; }
///
public sealed override DbSet Roles { get; set; }
///
public sealed override DbSet RoleClaims { get; set; }
public sealed override DbSet Users { get; set; }
///
#region Initialization
public ApplicationUserDbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.ConfigureCurrentDbModel();
}
#endregion
}
}