OData / ODataConnectedService

A Visual Studio extension for generating client code for OData Services
Other
79 stars 41 forks source link

Microsoft.OData.Cli 0.3.0 enable-tracking no longer working #390

Closed emyklebost closed 3 months ago

emyklebost commented 4 months ago

There seems to be a regression when upgrading Microsoft.OData.Cli from 0.2.0 to 0.3.0. Using an unmodified metadata.xml the new version no longer generate property tracking when the --enable-tracking flag is used.

Assemblies affected

Microsoft.OData.Cli 0.3.0

Reproduce steps

Generate client using odata-cli version 0.3.0 and the --enable-tracking flag.

Expected result

Generated entities shall implement INotifyPropertyChanged.

Actual result

Generated entities does not implement INotifyPropertyChanged.

corranrogue9 commented 4 months ago

@gathogojr believes there's already a fix for this pending release, but he will take a look at reproing before the release.

gathogojr commented 4 months ago

@emyklebost The workaround currently is to explicitly specify true or false, e.g., --enable-tracking true or --enable-tracking false. You can find a comprehensive description of the problem and the solution in the description for this pull request