Npgsql cannot find NpgsqlException when performing migration

When I do update-database, and an error occurs in the database:

System.Runtime.Serialization.SerializationException: Type not allowed for member Npgsql.NpgsqlException, Npgsql, Version = 2.2.5.0, Culture = neutral, PublicKeyToken = 5d8b90d52f46fda7 '.

He is trying to tell me about the error, but I believe that he cannot find the type of exception trying to wrap it, so I leave to guess about his error.

I am using Npgsql.EntityFramework version 2.2.5.0, which is currently the latest version.

+4
source share
4 answers

Copy Local Nogsql , , GAC.

0

. 3 , SQLServer. PostgreSql , .

, Add-Migration, .

,

0

PostgreSql Npgsql.EntityFramework(2.2.7) .Net.

- , Npgsql.EntityFramework Npgsql NuGet, - .

- , , - , . .

, , .

-1

Source: https://habr.com/ru/post/1584531/