-
Notifications
You must be signed in to change notification settings - Fork 51
Add migration error using AddCustomIdentity #10
Copy link
Copy link
Open
Description
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; }
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels