Update registration
This commit is contained in:
@ -3,5 +3,5 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Hcs.WebApp.Data
|
||||
{
|
||||
internal class AppIdentityDbContext(DbContextOptions<AppIdentityDbContext> options) : IdentityDbContext<AppUser>(options) { }
|
||||
public class AppIdentityDbContext(DbContextOptions<AppIdentityDbContext> options) : IdentityDbContext<AppUser, AppRole, string>(options) { }
|
||||
}
|
||||
|
||||
6
Hcs.WebApp/Data/AppRole.cs
Normal file
6
Hcs.WebApp/Data/AppRole.cs
Normal file
@ -0,0 +1,6 @@
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
namespace Hcs.WebApp.Data
|
||||
{
|
||||
public class AppRole : IdentityRole { }
|
||||
}
|
||||
@ -2,5 +2,5 @@
|
||||
|
||||
namespace Hcs.WebApp.Data
|
||||
{
|
||||
internal class AppUser : IdentityUser { }
|
||||
public class AppUser : IdentityUser { }
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
namespace Hcs.WebApp.Data.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
internal partial class CreateIdentitySchema : Migration
|
||||
public partial class CreateIdentitySchema : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
|
||||
@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
namespace Hcs.WebApp.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppIdentityDbContext))]
|
||||
internal class AppIdentityDbContextModelSnapshot : ModelSnapshot
|
||||
public class AppIdentityDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user