Search code examples
postgresql.net-corenpgsqlef-core-2.0

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


I am starting a project with prosgresql, EF Core and .net Core. For this case is it a must to use npgsql?


Solution

  • It isnt a must to use npgsql you can use EF Core on its own https://www.npgsql.org/efcore/index.html.

    However I would recommend using npgsql apposed to EFCORE, I use it for when working with .NET CORE and PostgresSQL they also have great documentation at https://www.npgsql.org/doc/basic-usage.html and you don't need to depend on EF