gpt4 book ai didi

postgresql - Blazor + 身份 : why there is an error?

转载 作者:行者123 更新时间:2023-12-04 10:48:34 25 4
gpt4 key购买 nike

我想将 Blazor Server 与 ASP.NET Identity 一起使用。但我需要使用 PostgreSQL 作为用户/角色存储,因为它在 AWS 中。
它不使用 EF,这是我需要的。

  • 我创建了新的 Blazor 项目。
  • 添加了nuget包
    https://github.com/Robynhu/AspNetCore.Identity.PostgreSQL
  • 我已经按照包中的描述修改了代码。
  • 构建,运行:点击注册或登录:

    Sorry, there's nothing at this address


  • 我明白有些东西错过了,但什么?怎么修?

  • 这是我的项目:
    https://send.firefox.com/download/44d93569f4e7d732/#iVXL7tGMc5WVieFH6hb5jA

    最佳答案

    我添加了 Scaffold 项目:Register、Login 等页面和一些代码被添加到项目中。它解决了这个问题。
    注意:所有默认页面都在 Identity Nuget 包中,如果你想替换 Identity(像我一样)需要添加 Scaffold 页面。

    关于postgresql - Blazor + 身份 : why there is an error?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59589108/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com