Ef-core is not supported if the target project is targeted to net48
API-kernel opened this issue · comments
Alexander Pushkin commented
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
Anton Shkuratov commented
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.
Alexander Pushkin commented
It works, thx! How could I have missed this?)