Вот мой класс dbcontext Определение: < /p>
Код: Выделить всё
public class ApplicationDbContext : IdentityDbContext
< /code>
Мой пользовательский пользователь и роль: < /p>
public class ApplicationUser : IdentityUser
< /code>
public class ApplicationRole : IdentityRole
< /code>
I have references to my ApplicationUser
InvalidoperationException: невозможно разрешить службу для типа 'microsoft.aspnetcore.identity.usermanager. `1 [microsoft.aspnetcore.identity.identityuser] ', пытаясь активировать' myapp.web.areas.identity.pages.account.registermodel '.
Подробнее здесь: https://stackoverflow.com/questions/785 ... caffolding