进行迁移时,Npgsql找不到NpgsqlException [英] Npgsql can't find NpgsqlException when doing Migrations

查看:281
本文介绍了进行迁移时,Npgsql找不到NpgsqlException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行更新数据库并且数据库发生错误时,我得到:

When I do an update-database and an error happens at the database I get:


System.Runtime.Serialization.SerializationException:类型不是为成员'Npgsql.NpgsqlException,Npgsql,Version = 2.2.5.0,
Culture = neutral,PublicKeyToken = 5d8b90d52f46fda7'解析的
类型。 / p>

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

它试图告诉我一个错误,但是我想它找不到试图包装它的异常类型,所以我m左猜测我的错误。

Its trying to tell me about an error but I presume it can't find the exception type its trying to wrap it in so I'm left guessing at my mistake.

我使用的是最新版本2.2.5.0 Npgsql.EntityFramework。

I'm using version 2.2.5.0 Npgsql.EntityFramework which is currently the latest version.

推荐答案

这是Npgsql问题跟踪器上的一个开放错误:

This is an open bug on the Npgsql issue tracker:

https://github.com/npgsql/npgsql/issues/714

这篇关于进行迁移时,Npgsql找不到NpgsqlException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆