【问题标题】:Blazor + Identity: why there is an error?Blazor + Identity:为什么会出现错误?
【发布时间】:2020-04-22 15:20:59
【问题描述】:

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

它不使用EF,这是我需要的。

  1. 我已经创建了新的 Blazor 项目。

  2. 添加了 nuget 包 https://github.com/Robynhu/AspNetCore.Identity.PostgreSQL

  3. 我已按照包中的说明修改了代码。

  4. 构建、运行:点击注册或登录:

    对不起,这个地址什么都没有

  5. 我知道遗漏了什么,但是什么?如何解决?

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

【问题讨论】:

    标签: postgresql asp.net-core asp.net-identity blazor


    【解决方案1】:

    我添加了脚手架项目:注册、登录等页面和一些代码已添加到项目中。它解决了这个问题。 注意:所有默认页面都在 Identity Nuget 包中,如果您想替换 Identity(如我)需要添加 Scaffold 页面。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-23
      • 2021-08-04
      相关资源
      最近更新 更多