在asp.net 5中支持odata吗? [英] Is odata supported in asp.net 5?

查看:122
本文介绍了在asp.net 5中支持odata吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我在ASP.Net 4.5.2中编写的Web API移植到ASP.Net 5以获得跨平台支持,这被证明是一个关键问题。在我以前的web api中,我实现了一个OData解决方案,但是当我尝试将我的web api移植到ASP.Net 5时,即使在使用NuGet下载最新版本后,我无法在我的项目中使用System.Web,更不用说System.Web.OData了。 OData的版本。我想知道OData是否支持5,如果它与4.5.2中的任何不同。谢谢



我尝试过:



我试过搜索在互联网上看看我是否能在ASP.Net 5中找到任何有关OData支持的内容,但我找不到任何东西

I'm trying to port a Web API I wrote in ASP.Net 4.5.2 to ASP.Net 5 for the cross platform support, which turns out to be a critical issue. In my former web api I implemented an OData solution, but when trying to port my web api to ASP.Net 5 I was unable to use System.Web let alone System.Web.OData in my project even after using NuGet to download the latest version of OData. I'm wondering if OData is even supported in 5, and if it's any different than in 4.5.2. Thanks

What I have tried:

I've tried searching all over the internet to see if I could find anything about OData support in ASP.Net 5, but I couldn't find anything

推荐答案

不需要系统ASP.Net 5中的.web

您需要使用.Net核心。



或者,切换回4.5.2版本。



参考资料 -

ScottGu&#博客 - 介绍ASP.NET 5 [ ^ ]。

ASP.NET 5和MVC 6中的十大变化Stephen Walther [ ^ ]
There is no need for System.web in ASP.Net 5.
You need to use .Net core instead.

Alternately, switch back to version 4.5.2.

References -
ScottGu's Blog - Introducing ASP.NET 5[^].
Top 10 Changes in ASP.NET 5 and MVC 6 | Stephen Walther[^]


这篇关于在asp.net 5中支持odata吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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