neisbut / Npgsql.Bulk

Helper for performing COPY (bulk insert and update) operation easily, using Entity Framework + Npgsql.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ef-core is not supported if the target project is targeted to net48

API-kernel opened this issue · comments

My project targets to 4.8 and we are using ef-core 3.0.
When i link the library i get compilation error

[CS1503]  Argument 1: Cannot convert from"MyDataContext" into "System.Data.Entity.DbContext".

Usage:

new NpgsqlBulkUploader(new MyDataContext());

Npgsql.Bulk Version=0.9.0

Hi @API-kernel, could you please try the followin package instead https://www.nuget.org/packages/NpgsqlBulk.EFCore It is same code base, but targeting to EF Core only. Hope this helps.

It works, thx! How could I have missed this?)