I made a MVC project, that includes 2 projects.
- class library (.NET Core) - i have my models and services/options here
- ASP.NET Core Web Application - Controllers, views here
I want to add identity to my project. So i found the following NuGet Packages
- Microsoft.AspNetCore.Identity.EntityFrameworkCore
- Microsoft.AspNetCore.Identity.UI
- Microsoft.Extensions.Identity.Stores
I used public class NameDbContext : IdentityDbContext<IdentityUser> in my DbContext class.
I clicked Add on the Web-project -> choose "New Scaffolded Item" -> pictures below
Any ideas?
EDIT:
i can see in my database that the tables are created, after the NuGet Packages and the add-migration & update-database commands that followed.
I also tried my DbContext class without the <IdentityUser> like this
public class NameDbContext : IdentityDbContext