Hi
I'm looking for a way to adjust service implementation by service implementation the activation and level of expand
In my service I get something similar to
Result := TXDataOperationContext.Current.GetManager.Find<TReparateur>.Where(TLinq.Eq('reparateur_id', Id)).UniqueResult;
TReparateur gets couples of sub linked object in different proxy (SiteList, ReparateurContactList...)
I would like to expand only for this service this level
But using Where () I don't find way to process
I tried without success each of these :
- TXDataOperationContext.Current.GetManager.ProxyListLoadDepth := 3;
- TXDataOperationContext.Current.GetManager.ProxyLoadDepth := 3;
- TXDataOperationContext.Current.Response.Headers.SetValue('xdata-expand-level', '3');
How to process (without setting up a genaral parameter in XdataServer or using $expand param) ?
Thanks
Sylvain