Skip to content
| Marketplace
Sign in
Visual Studio>Templates>OData v4 Client Code Generator

OData v4 Client Code Generator

OData

|
101,609 installs
| (20) | Free
An item template that simplifies the process of accessing OData v4 services by generating C# and VB.Net client-side proxy classes.

This extension contains a T4 item template which is used to generate C# and VB .NET client-side proxy classes for OData protocol version 4.0 (http://docs.oasis-open.org/odata/odata/v4.0/cs02/part1-protocol/odata-v4.0-cs02-part1-protocol.doc) services. The generated classes work with the rebranded OData Client library for .NET (http://www.nuget.org/packages/Microsoft.OData.Client). 

The Changelog will now address any changes made to the extension itself. Should you want to install versions of ODL newer than what comes with the extension package, you may do so but the extension is not guaranteed to work with the newer version of ODL.

Previous versions of OData V4 Client Code Generator can be found here.

Changelog: 7.5.0:

 Bug Fixes:

  • Add logo and enable VSIX for VS2015
  • Fix missing IgnoreUnexpectedAttributesAndElements setting
  • Update test files to reflect changes in T4
  • See details in https://github.com/OData/odata.net/pull/1150.

7.4.3 (beta):

  • The naming convention has now changed to match that of the binaries that the extension contains.
  • The extension now supports OData Client 7.4.3 and VS2017.
  • Please note that currently you'll have to manually add the following dependencies: System, System.Data, System.Data.DataSetExtensions, System.Net.Http, System.XML, System.Xml.Linq
  • Please report any issues to our Github repo.

2.4.0:

OData V4 Client Code Generator now supports VS 2015.

2.3.0:

Features:

  1. OData V4 Client Code Generator now supports abstract entity type without key.

2.2.0:

Features:

  1. OData V4 Client Code Generator now supports taking complex value, entity value or entity reference value as parameter of function

 Bug Fixes:

  1. Fix a bug that OData V4 Client Code Generator generates dupped extension methods when a function bound to a derived entity type overrides a function bound to its base entity type in edm model.

2.1.0:

Features:

  1. OData v4 Client Code Generator now supports  the generation of properties whose type, functions whose parameter types and return type are Edm.TimeOfDay or Edm.Date.
  2. OData v4 Client Code Generator generates one more ByKey method for each EntityType, which directly accepts all keys as parameters instead of a dictionary.

Bug Fixes:

  1. Fix a bug that OData v4 Client Code Generator may generate empty ExtensionMethods class
  2. Fix a bug that OData v4 Client Code Generator may generate duplicate names between a property and a private field.
  3. [Github issues #10] Fix a bug that OData v4 Client Code Generator cannot correctly generate code when EntityType name and one of its property name are same.
  4. Fix a bug that OData v4 Client Code Generator cannot correctly generate VB code for a bound function which returns a collection.

2.0.0:

Please refer to this blog post on our team blog for details.

1.0.0:

Enum Support The T4 item template supports generating the codes of enum values and properties for OData Client library.

Singleton Support The T4 item template supports generating the codes of singleton values. You could now compose a LINQ query using singletons values.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft