且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

不能键入System.Data.Entity.Core.Objects.ObjectResult隐式转换为System.Data.Objects.ObjectResult

更新时间:2022-10-18 19:15:36

您需要升级到新的实体框架6运行。你的项目p>

右键单击并选择管理的NuGet包...
在线标签中选择的EntityFramework ,然后点击安装
注:如果在的EntityFramework的NuGet包的以前版本的安装,这将其升级到EF6。
或者,您也可以运行程序包管理器控制台执行以下命令:

  PM>安装封装的EntityFramework 



参考:的 http://msdn.microsoft.com/en-US/data/upgradeEF6


I am trying to update an EDMX Stored Procedure and I am getting this error:

Cannot implicitly convert type System.Data.Entity.Core.Objects.ObjectResult<X> to System.Data.Objects.ObjectResult<X>

I am using Visual Studio 2012.

You need to upgrade to the new Entity Framework 6 runtime.

Right-click on your project and select Manage NuGet Packages... Under the Online tab select EntityFramework and click Install Note: If a previous version of the EntityFramework NuGet package was installed this will upgrade it to EF6. Alternatively, you can run the following command from Package Manager Console:

PM> Install-Package EntityFramework

Reference: http://msdn.microsoft.com/en-US/data/upgradeEF6