Update nts.md by changing EF version from 9 to 8#365
Update nts.md by changing EF version from 9 to 8#365HrlecMatej wants to merge 1 commit intonpgsql:mainfrom
Conversation
|
@HrlecMatej prior to version 9.0, you must also manually register the Npgsql plugin in addition to the EF-level configuration. Have you maybe missed the "Older EF versions, with a connection string" tab just next to this? |
|
@roji I only added this snippet of code in my DbContext's OnConfiguring method: |
|
@HrlecMatej that shouldn't be working on EF 8.0, you need to have |
|
@roji Just to be sure, I did a string search on the solution. Only UseNetTopologySuite is used in |
We are using .NET 8 and Entity Framework Core 8. Directly passing a connecting string for Postgis with Npgsql worked with our current EF version:
builder.Services.AddDbContext<MyContext>(options => options.UseNpgsql( "<connection string>", o => o.UseNetTopologySuite()));So I propose to change the version of EF mentioned in the docs from 9 to 8.