它与ASP.NET MVC很相似因为它包含mvc的功能,比如 routing, controllers, action results, filter, model binders, IOC container...因此将 [Queryable]特性添加到controller的方法中,它将会返回 IQueryable结果, 客户端可以使用该方法进行OData组合查询。
可以在IIS或应用程序中寄宿。...它支持 MVC 的许多功能,比如routing, controllers, action results, filter, model binders, IOC container or dependency...它也同时支持MVC一样的功能(routing, controllers, action results, filter, model binders, IOC container or dependency...像ASP.NET MVC5那样,可以在WEB API2的controller级别和action级别定义特性路由:
Controller level routing(控制器级别路由)
在控制器级别定义的特性路由将应用到所有