Beispiel #1
0
 /**
  * To create the Uri to be used for a binding operation (AddLink, SetLink
  * or DeleteLink). For example if both Customer (with id 'ALKFI')and
  * Order (1234)exists in OData service and in context, then Uri will be:
  * _http://dataservice/Customers('ALKFI')/$links/Orders(1234)
  * if only Customer exists in the data service and context and Order is just
  * added in the context then Uri will be:
  * _http://dataservice/Customers('ALKFI')/$links/Orders
  *
  * @param ResourceBox $sourceResourceBox
  * @param RelatedEnd $binding
  * @return Uri
  */
 protected function CreateRequestUri($sourceResourceBox, $binding)
 {
     return Utility::CreateUri($sourceResourceBox->GetResourceUri($this->_context->GetBaseUriWithSlash()), $this->CreateRequestRelativeUri($binding));
 }