实体数据模型向导错误 (MVC)
Entity Data Model Wizard error (MVC)
我在尝试添加 postgres 时遇到错误,询问我想使用哪个版本的 entity framework 我收到以下错误:
Your project references the latest version of Entity Framework;
however, an Entity Framework 3 database provider compatible with this
version could not be found for your data connection. If you have
already installed a compatible provider, ensure you have rebuilt your
project before performing this action. Otherwise, exit this wizard,
install a compatible provider, and rebuild your project before
performing this action.
我已经使用教程 (https://github.com/npgsql/npgsql/wiki/Visual-Studio-Design-Time-Support---DDEX-Provider#install-entityframework-6-npgsql-and-npgsqlentityframework-from-nuget) 重新创建了项目并安装了 npgsql,但我仍然遇到同样的错误。
有什么建议吗?
你应该这样做:
打开 Nuget:
1.Pre-安装entityframework
2.Install Npgsql.entityframework
- 重建您的项目。
希望对您有所帮助;)
我在尝试添加 postgres 时遇到错误,询问我想使用哪个版本的 entity framework 我收到以下错误:
Your project references the latest version of Entity Framework; however, an Entity Framework 3 database provider compatible with this version could not be found for your data connection. If you have already installed a compatible provider, ensure you have rebuilt your project before performing this action. Otherwise, exit this wizard, install a compatible provider, and rebuild your project before performing this action.
我已经使用教程 (https://github.com/npgsql/npgsql/wiki/Visual-Studio-Design-Time-Support---DDEX-Provider#install-entityframework-6-npgsql-and-npgsqlentityframework-from-nuget) 重新创建了项目并安装了 npgsql,但我仍然遇到同样的错误。
有什么建议吗?
你应该这样做:
打开 Nuget:
1.Pre-安装entityframework
2.Install Npgsql.entityframework
- 重建您的项目。
希望对您有所帮助;)