Base solution for your next web application
Open Closed

PostgreSQL Support doc's issues #7417


User avatar
0
sampath created

Hi,

Doc: https://aspnetboilerplate.com/Pages/Documents/EF-Core-PostgreSql-Integration

But, You don't need this now:

To prevent EF Core from calling Program.BuildWebHost(), rename BuildWebHost. For example, change it to InitWebHost.

This is misleading:

Delete the *.EntityFrameworkCore/Migrations folder, because Npgsql.EntityFrameworkCore.PostgreSQL will add some of its own configuration to work with Entity Framework Core.

It should be like this:

Delete the *.EntityFrameworkCore/Migrations folder's Migration classes. Don't delete Seed folder. Because Npgsql.EntityFrameworkCore.PostgreSQL will add some of its own configuration to work with Entity Framework Core.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Thanks a lot, I will check the documentation and try to fix it.

  • User Avatar
    0
    maliming created
    Support Team

    https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4744