Overview Q & A Rating & Review
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
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.
OData V4 Client Code Generator now supports VS 2015.
OData V4 Client Code Generator now supports abstract entity type without key.
OData V4 Client Code Generator now supports taking complex value, entity value or entity reference value as parameter of function
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.
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.
OData v4 Client Code Generator generates one more ByKey method for each EntityType, which directly accepts all keys as parameters instead of a dictionary.
Fix a bug that OData v4 Client Code Generator may generate empty ExtensionMethods class
Fix a bug that OData v4 Client Code Generator may generate duplicate names between a property and a private field.
[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.
Fix a bug that OData v4 Client Code Generator cannot correctly generate VB code for a bound function which returns a collection.
Please refer to
this blog post on our team blog for details.
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.