Incorrect code generation for FunctionImports

Oct 8, 2010 at 12:14 PM

There is a FunctionImport tag in metadata:

<FunctionImport Name="DefaultConfiguration" EntitySet="Configurations" ReturnType="XXX.YYY.ConfigurationService.Configuration" m:HttpMethod="GET" />

Code generated by odatagen contains several errors. In .h file, a method is generated and its return type is NSString, while it should return an object of type Configuration.

- (NSString *) DefaultConfiguration;

In .m file, the return type of the same method is XXX.YYY.ConfigurationService.Configuration *, which is incorrect in objective c.

- (XXX.YYY.ConfigurationService.Configuration *) DefaultConfiguration

Oct 13, 2010 at 8:03 PM

Definetively something to fix. I'll make sure it is fixed in the next release.




Mar 12, 2011 at 12:48 AM

This is fixed in Version 1.2.