OData
Create and consume RESTful APIs in a simple and standard way
Latest posts
![[Tutorial & Sample] Containment is Coming with OData V4](https://devblogs.microsoft.com/odata/wp-content/uploads/sites/23/2019/02/ODataLogo-150.png)
[Tutorial & Sample] Containment is Coming with OData V4
Before OData V4, every entity set must be accessed from top-level even it is in a containment relationship with other set. For example, assume a schema where Order Lines (Type: “OrderLine”, EntitySet: “OrderLines”) live within Orders (Type: “Order”, EntitySet: “Orders”). Then, Orders have an “id” member that is the key, and that OrderLines has id and OrderId (container id) members that form a composite key. There are two issues in this kind of model. To solve the above problems, containment navigation property (“containment” in short) is introduced in OData V4 (containment spec). Using containment, y...
![[Tutorial & Sample] How to use OData Client Code Generator to generate client-side proxy class](https://devblogs.microsoft.com/odata/wp-content/uploads/sites/23/2019/02/ODataLogo-150.png)
[Tutorial & Sample] How to use OData Client Code Generator to generate client-side proxy class
Edited on July 09, 2014 by updating “Add OData Client Proxy File” for V2.0.0 and adding "Appendix" part. Please refer to "OData Client Code Generator 2.0.0 release" for V2.0.0 release notes Edited on Apr 29, 2014 by adding "Upgrade the Project Dependencies to the Most Recent Version" part. In this tutorial, you will generate an OData client proxy class for an OData V4 service by “OData Client Code Generator”. Install OData Client Code Generator Start Visual Studio, from the TOOLS menu, select Extensions and Updates In the left panel, expand Online -> Visual Studio Gallery. Search “OData Client Code ...
![[Tutorial & Sample] Use Singleton to define your special entity](https://devblogs.microsoft.com/odata/wp-content/uploads/sites/23/2019/02/ODataLogo-150.png)
[Tutorial & Sample] Use Singleton to define your special entity
Ever had a special entity where there can be only one of its kind, but bothered by having to define a one-element entity set for it? Ever wanted to request a special entity but bothered by needing to find out its key first? Use a singleton! Singleton is newly introduced in OData V4, to allow developers name such special entity, and it can be addressed directly by its name from the service root. Let's think about a universal scenario which can benefit from singleton: We want to have a model to present the staff information of a company. So first, we define an EntityType named EmployeeType to represent the...

New and improved EULA!
TL;DR: You can now (legally) use our .NET OData client and ODataLib on Android and iOS. Backstory For a while now we have been working with our legal team to improve the terms you agree to when you use one of our libraries (WCF Data Services, our OData client, or ODataLib). A year and a half ago, we announced that our EULA would include a redistribution clause. With the release of WCF Data Services 5.6.0, we introduced portable libraries for two primary reasons: It took some work to get there, and we had to make some sacrifices along the way, but we are now focused exclusively on portable libraries for client...

New version of OData Validator
The OData team has been working on updating the OData Validator tool to support the new JSON format validation. We are pleased to announce that the tool now supports validating your V3 service for all three formats – ATOM, old JSON format (aka JSON Verbose) and the new JSON format. We are also working on adding OData V4 service validation support. We will continue adding more validation rules over the next few months. Please check out the tool here : https://services.odata.org/validation/ and provide us feedback. About the tool OData Validator is an OData protocol validation tool. We have gone through the ODat...

Using WCF Data Services 5.6.0 with Entity Framework 6+
And now for some exciting news: you can finally use WCF Data Services with Entity Framework 6+! Today we are uploading a new NuGet package called WCF Data Services Entity Framework Provider. This NuGet package bridges the gap between WCF Data Services 5.6.0 and Entity Framework 6+. We were able to build this provider as an out-of-band provider (that is, a provider that ships apart from the core WCF DS stack) because of the public provider work we did recently. Upgrading an existing OData service to EF 6 If you are upgrading an existing OData service to Entity Framework 6 or greater, you will need to do a couple...

WCF Data Services 5.6.0 Release
Recently we released updated NuGet packages for WCF Data Services 5.6.0. You will need the updated tooling (released today) to use the portable libraries feature mentioned below with code gen. What is in the release: Visual Studio 2013 Support The WCF DS 5.6.0 tooling installer has support for Visual Studio 2013. If you are using Visual Studio 2013 and would like to consume OData services, you can use this tooling installer to get Add Service Reference support for OData. Should you need to use one of our prior runtimes, you can still do so using the normal NuGet package management commands (you will need to un...

Using the new client hooks in WCF Data Services Client
What are the Request and Response Pipeline configurations in WCF Data Services Client? In WCF Data Services 5.4 we added a new pattern to allow developers to hook into the client request and response pipelines. In the server, we have long had the concept of a processing pipeline. Developers can use the processing pipeline event to tweak how the server processes requests and responses. This concept has now been added to the client (though not as an event). The feature is exposed through the property on the . On there are two properties, called and . The contains configuration callbacks that influence reading ...

WCF Data Services 5.6.0 Alpha
Today we are releasing updated NuGet packages and tooling for WCF Data Services 5.6.0. This is an alpha release and as such we have both features to finish as well as quality to fine-tune before we release the final version. You will need the updated tooling to use the portable libraries feature mentioned below. The tooling installer is available from the download center. What is in the release: Visual Studio 2013 Support The WCF DS 5.6.0 tooling installer has support for Visual Studio 2013. If you are using the Visual Studio 2013 Preview and would like to consume OData services, you can use this tooling inst...