Incorrect code generation for FunctionImports

Oct 8, 2010 at 11:14 AM

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 7:03 PM

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




Mar 11, 2011 at 11:48 PM

This is fixed in Version 1.2.