简体   繁体   中英

OData-like routes in ASP.NET MVC

Is there a simple way for creating 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM