a TXDATAClient is created as follows:
localc:=TXDataClient.Create;
localc.Uri:='http://127.0.0.1:1234/path/v1/';
localserv:=localc.Service<IlocalServices>;
localc.HttpClient.OnSendingRequest:=procedure(Req: THttpRequest)
begin
Req.Headers.SetValue('xdata-expand-level','1');
end;
The following XData service interface implementation has a Tblob dat field in a class where dat is NOT declared as lazy:
result:=obj.Find<tapistorage>.Where(Linq['typid']._In(a)).CreateAlias('dat','hadenough',TFetchMode.Eager).List;
But the dat is still by reference in the response.
How can I DISABLE this lazy things?
I am starting to believe to no-lazy ORMs......