开发者

OData-like routes in ASP.NET MVC

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜