I am using ADO.Net data services and is a service operation that results in the results of some linens in the statements of institutions Returns. Those are the ones in the form of a part of the Linux statement. To include a sub-object ("Nevropap"), when this service is in progress, it does not appear to include extended. Does anyone know why it is or how it is fixed? Is it possible to add a keyword to a service operation in the call to expand that sub-object? (I tried $ expansion = sub object, but this does not seem to work - bad request).
I would like to end with either: 1.) In a service operation, returns a syntax return for a linq statement. (I'm pretty sure this is not possible)
Select something like this: (c.MyObj.Include ("SubObj") from the reference c). List () (This service works inside the operation, but does not provide subhousing on client side)
or
2.) For service operation request Extend Syntax Sub-Object
Something like this: http: //localhost/MyDataService/MyDataService.svc/ServiceOp1? Param1 = 234 $ detail = subobes (note: this does not work)
It seems that this is currently not possible (Pure 3.5 SP1). Service operations will only return either primitive types or entities, custom types or any other type of services, including extended entities, can not be returned from the service operation. To cope with this, only items should be returned from the service operation and then if the client needs to include / expand, then the desired object should call "Load Properties" for detail (Note: This means that another database Hit per-loadproperty call)
Comments
Post a Comment