1.新建MVC项目,安装OData Install-Package Microsoft.AspNet.WebApi.OData -Version 4.0.0 2.新建WebAPI Controller 示例代码如下: public class ArticleController : ApiController { private readonly IList<Article> _Article; public ArticleController() { _Article = new List&…