I'm trying to use AddCustomIdentity() and I'm getting this error when run the add migration command.
No DbContext named 'NetDevPackAppDbContext' was found.
File IdentityConfig.cs
services.AddIdentityEntityFrameworkContextConfiguration(options =>
options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"),
b => b.MigrationsAssembly("Equinox.Infra.CrossCutting.Identity")))
.AddCustomIdentity<ApplicationUser>();
ApplicationUser.cs
public class ApplicationUser : IdentityUser
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
I'm trying to use AddCustomIdentity() and I'm getting this error when run the add migration command.
No DbContext named 'NetDevPackAppDbContext' was found.File IdentityConfig.cs
ApplicationUser.cs