ā Unable to create a 'DbContext' of type 'ApplicationDbContext'.
hi
i'm trying to structure my project with DDD model
but getting this error:
(this used to work before restructuring)
i'm adding db context in
db context in
and ApplicationUser in
i've moved migration files to
but now i can't do databtase update or make new migrations, or run the app
i'm trying to structure my project with DDD model
but getting this error:
Unable to create a 'DbContext' of type 'ApplicationDbContext'. The exception 'The entity type 'IdentityUserLogin<string>' requires a primary key to be defined.(this used to work before restructuring)
i'm adding db context in
Project.Web/Program.cs:db context in
Project.Infrastructure.Data:and ApplicationUser in
Project.Domain.Entities.Identityi've moved migration files to
Project.Infrastructure/Data/Migrationsbut now i can't do databtase update or make new migrations, or run the app