Pode me ajudar prof? Conforme o assunto, segue imagem do erro:
As partes do código:
public class UserDbContext : IdentityDbContext<IdentityUser<int>, IdentityRole<int>, int>
{
public UserDbContext(DbContextOptions<UserDbContext> opt) : base(opt)
{
}
}
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserDbContext>(options => options.UseMySQL(Configuration.GetConnectionString("UsuarioConnection")));
services
.AddIdentity<IdentityUser<int>, IdentityRole<int>>()
.AddEntityFrameworkStores<UserDbContext>();
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "UsuariosApi", Version = "v1" });
});
}
Refiz as aulas inclusive e baixei o projeto no final mas não achei nada diferente