0

突然跑不动了

add-migration a -ProjectName MyProject.Model -ConnectionString "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.1.1.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=mydb)));Persist Security Info=True;User Id=myuser;Password=xxxx;" -ConnectionProviderName "Oracle.ManagedDataAccess.Client"

不再,它给了我

The ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details.

我尝试为该项目重新安装 Oracle.ManagedDataAccess.Client 但它没有帮助。

4

1 回答 1

0

不确定它是什么,但在某些时候我看到了与 EntityFramework 相关的错误,所以我将所有项目的 EntityFramework 更新为最新的 6.2.0,现在错误消失了

于 2019-07-09T05:31:17.927 回答