开发者

OData-like routes in ASP.NET MVC

开发者 https://www.devze.com 2023-02-11 17:01 出处:网络
Is there a simple way for creating开发者_如何学Python asp.net mvc application with routes based on OData uri conventions http://www.odata.org/developers/protocols/uri-conventions ?

Is there a simple way for creating开发者_如何学Python asp.net mvc application with routes based on OData uri conventions http://www.odata.org/developers/protocols/uri-conventions ?

It's like a just adding new html format for specification.

Or may be another way for converting Urls into LINQ queries dynamically?


You could use a Domain Service Class which the wizard allows you to expose its methods as Odata out of the box. Just cause its MVC does not mean you can not attach on WCF etc.

Take a look at this blog post http://blogs.msdn.com/b/brada/archive/2010/03/16/silverlight-4-ria-services-ready-for-business-exposing-odata-services.aspx

It explains how to use A Domain Service class to expose ODATA.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号