I created a new Blazor project with individual accounts, then transferred the files over to the existing project. Then renamed ApplicationDbContext to: IdentityContext to distinguish from the application context. Then ran the update database command with the existing migration for identity.
9 lines
251 B
C#
9 lines
251 B
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ServerManagement.Data;
|
|
|
|
public class IdentityContext(DbContextOptions<IdentityContext> options) : IdentityDbContext<ApplicationUser>(options)
|
|
{
|
|
}
|