|
Is this really supported? How the QueryOperationResponse is used with the serice operations?
User Guide says the following about the service operations.
FunctionImport
FunctionImport element in service metadata is used to import Stored Procedures or Functions defined in Store Schema Model into Entity Data Model. Odatagen will generate the function in
the class as per functionimport element in service metadata document. You can then use OData Client for invoking the function by passing the parameter(s) required by this function. Following are some of the examples of FunctionImport:
Function which accept single parameter and return collection:
DemoService *proxy=[[DemoService alloc]initWithUri:@"http://services.odata.org/OData/OData.svc/" credential:nil];
NSArray *arr=
[proxy
GetProductsByRatingWithrating:[NSNumber numberWithInt:4]
];
Product *p=nil;
int count=[arr count];
for (int i=0;i<count;i++)
{
p=[arr objectAtIndex:i];
NSLog(@"name = %@",[p getName]);
}
[proxy release];
|