我是否必须将 npgsql 用于 prosgresql、EF Core 和 .net Core 上的项目

Do I have to use npgsql for a project on prosgresql, EF Core and .net Core

我正在使用 prosgresql、EF Core 和 .net Core 开始一个项目。对于这种情况,是否必须使用 npgsql?

不是必须使用 npgsql,您可以单独使用 EF Core https://www.npgsql.org/efcore/index.html

但是我建议使用 npgsql 与 EFCORE 并列,我在使用 .NET CORE 和 PostgresSQL 时使用它,它们在 https://www.npgsql.org/doc/basic-usage.html 也有很好的文档,您不需要依赖 EF