WCF Tutorial
www.Learn2Expert.net A new ASP.Net MVC 4, SSIS, Interview Q/A tutorial - Visit - www.Learn2Expert.net
Skip Navigation LinksHomeIntroduction to OData No of Views: 33141

Introduction to OData

OData - Open Data Protocol is method to access the information exposed by different data source (Cloud storage, SharePoint, SQL Database, custom application etc) by different client (Web browser, Mobile, Business Intelligence, Custom application- .net/Java etc)

It is abstract data model and protocol used to access the information exposed by any data source. In real time scenario, client application may need to read the data from different source using different data provider. But it is always good to have single point of contact and mode to access the different sources; this can be easily achieved by using OData.

Below diagram explains about the different types of Data sources and it connection to different types of Clients using OData.

Tips!

  • Always create the service with Interface->Implementation format, mention the contract in Interface.
  • Define the service in Class library and refer the class library in Host project. Don’t use service class in host project.
  • Change the instance mode to per call as default.
  • Always catch exception using try/catch block and throw exception using FaultException < T >.
  • Logging and Include exception should be enable while compiling the project in debug mode. While in production deployment disable the logging and Include exception details.