none
Tutorials on OData RRS feed

  • Question

  • Hi,

    I want to start learning Odata implemention in my WCF C# Service. Please provide me good tutorials on OData. Is it compulsory to use to WEB API with OData. Cannot Odata exists seperately from WEB API. Is it must to learn Web API along with OData. Please share some tutorials on Odata implemention


    Mahender

    Sunday, September 22, 2013 9:06 PM

Answers

  • Hi,

    >>Is it compulsory to use to WEB API with OData. Cannot Odata exists seperately from WEB API. Is it must to learn Web API along with OData.

    It is not compulsory to use to WEB API with OData. And we can create Odata exists seperately from WEB API. And it willl be better if you learn Web API along with OData.

    Because here are two options for us to create OData:using the WCF Data Services or uisng Web API.

    WCF Data Services

    WCF Data Services is Microsoft’s library for building OData Services  or writing OData clients.  On the server side, the framework provides a very quick, simple model for exposing all or part of an Entity Framework model as an OData compatible service with little or no code. This service, scaffolded in minutes supports, if configured to allow it, read, insert, update and delete. 

    ASP.NET Web API

    The ASP.NET web API was introduced last year as a framework for building HTTP services; that is services that expose their functionality over HTTP (these may or may not be REST services). You build these services using controllers, much like ASP.NET MVC development for web applications.  The services are most often focused on exposing certain resources and enabling various actions on those resources. Using ASP.NET Web API, it is easy to create an OData endpoint. You can control which OData operations are exposed. You can host multiple OData endpoints, alongside non-OData endpoints. You have full control over your data model, back-end business logic, and data layer.

    For more information, please try to refer to:
    http://mattmilner.com/Milner/Blog/post/2013/04/02/WCF-Data-Services-and-Web-API-with-OData;-choices-choices.aspx .

    And for the tutorials on OData, please try to refer to the following:

    #T
    utorials on OData:
    http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api .

    #ASP.NET Web API: OData Tutorial Samples:
    http://code.msdn.microsoft.com/ASPNET-Web-API-OData-cecdb524 .

    #A New Option for Creating OData: Web API:
    http://msdn.microsoft.com/en-us/magazine/dn201742.aspx .

    #OData Services:
    http://www.codeproject.com/Articles/393623/OData-Services .

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, September 23, 2013 2:40 AM
    Moderator