72 references to LastSegmentInfo
System.Data.Services (72)
System\Data\Services\DataService.cs (26)
714ResourceSetWrapper lastSegmentContainer = description.LastSegmentInfo.TargetContainer; 719if (description.LastSegmentInfo.Operation != null && 720(0 != (dataService.Configuration.GetServiceOperationRights(description.LastSegmentInfo.Operation.ServiceOperation) & ServiceOperationRights.OverrideEntitySetRights))) 722DataServiceConfiguration.CheckServiceRights(description.LastSegmentInfo.Operation, description.IsSingleResult); 728if (lastSegmentContainer != null && description.LastSegmentInfo.Identifier != XmlConstants.UriCountSegment) 910throw DataServiceException.CreateResourceNotFound(description.LastSegmentInfo.Identifier); 1059ResourceSetWrapper targetResourceSet = description.LastSegmentInfo.TargetContainer; 1069Debug.Assert(description.LastSegmentInfo.TargetContainer != null, "description.LastSegmentInfo.TargetContainer != null"); 1070DataServiceConfiguration.CheckResourceRights(description.LastSegmentInfo.TargetContainer, EntitySetRights.WriteAppend); 1090description, entity, description.LastSegmentInfo.TargetContainer); 1155Debug.Assert(description.LastSegmentInfo.TargetContainer != null, "description.LastSegmentInfo.TargetContainer != null"); 1170object entity = Deserializer.GetResource(description.LastSegmentInfo, null, dataService, true /*checkForNull*/); 1171ResourceSetWrapper container = description.LastSegmentInfo.TargetContainer; 1232throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(description.LastSegmentInfo.Identifier)); 1353throw DataServiceException.CreateResourceNotFound(description.LastSegmentInfo.Identifier); 1402queryResults = RequestDescription.GetSingleResultFromEnumerable(description.LastSegmentInfo); 1425WebUtil.CheckResourceExists(element != null, description.LastSegmentInfo.Identifier); 1510if (description.SegmentInfos[parentResourceIndex].RequestEnumerable != description.LastSegmentInfo.RequestEnumerable) 1549RequestDescription.CheckQueryResult(resource, description.LastSegmentInfo); 1605container = description.LastSegmentInfo.TargetContainer; 1609throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(description.LastSegmentInfo.Identifier)); 1642Debug.Assert(description.LastSegmentInfo.HasKeyValues, "expecting properties to have key value specified"); 1643object childEntity = Deserializer.GetResource(description.LastSegmentInfo, null, dataService, true /*checkForNull*/); 2509this.contentIdsToSegmentInfoMapping.Add(contentId, description.LastSegmentInfo); 2751object resource = Deserializer.GetCrossReferencedResource(requestDescription.LastSegmentInfo); 2752previousRequest.LastSegmentInfo.RequestEnumerable = new object[] { resource };
System\Data\Services\RequestDescription.cs (9)
228get { return this.LastSegmentInfo.RequestEnumerable; } 234get { return this.LastSegmentInfo.SingleResult; } 247get { return this.LastSegmentInfo.TargetKind; } 253get { return this.LastSegmentInfo.TargetResourceType; } 259get { return this.LastSegmentInfo.TargetSource; } 267get { return this.LastSegmentInfo.ProjectedProperty; } 420segmentInfo.Identifier = description.LastSegmentInfo.Identifier; 471Debug.Assert(this.LastSegmentInfo != null, "this.LastSegmentInfo != null"); 530return this.UpdateEpmResponseVersion(acceptTypesText, this.LastSegmentInfo.TargetContainer, provider);
System\Data\Services\RequestQueryProcessor.cs (12)
143ResourceSetWrapper targetContainer = this.description.LastSegmentInfo.TargetContainer; 372this.description.LastSegmentInfo.TargetContainer, 399ResourceSetWrapper resourceSet = this.description.LastSegmentInfo.TargetContainer; 854this.query = RequestQueryParser.Where(this.service, this.description.LastSegmentInfo.TargetContainer, this.description.TargetResourceType, this.query, filter); 925ParameterExpression p = Expression.Parameter(this.description.LastSegmentInfo.TargetResourceType.InstanceType, "it"); 929this.description.LastSegmentInfo.TargetContainer, 930this.description.LastSegmentInfo.TargetResourceType, 1043Debug.Assert(this.description.LastSegmentInfo.TargetContainer != null, "Resource set must be known for Ordering to be applied."); 1044ResourceSetWrapper resourceSet = this.description.LastSegmentInfo.TargetContainer; 1082this.description.LastSegmentInfo.TargetContainer, 1322pageSize = this.description.LastSegmentInfo.TargetContainer.PageSize; 1384this.description.LastSegmentInfo.TargetResourceType,
System\Data\Services\RequestUriProcessor.cs (5)
393Debug.Assert(description.LastSegmentInfo.SingleResult, "description.LastSegmentInfo.SingleResult"); 394DataServiceConfiguration.CheckResourceRightsForRead(description.LastSegmentInfo.TargetContainer, true /* singleResult */); 398Debug.Assert(description.LastSegmentInfo.Key != null && !description.LastSegmentInfo.Key.IsEmpty, "Key Must be specified"); 399return description.LastSegmentInfo.Key;
System\Data\Services\Serializers\Deserializer.cs (16)
324container = description.LastSegmentInfo.TargetContainer; 331description.LastSegmentInfo.HasKeyValues && 357container = description.LastSegmentInfo.TargetContainer; 509Debug.Assert(!description.LastSegmentInfo.HasKeyValues, "CreateSegments must have caught the problem already."); 525ResourceProperty propertyToUpdate = description.LastSegmentInfo.ProjectedProperty; 577object entity = service.Updatable.CreateResource(description.LastSegmentInfo.TargetContainer.Name, fullTypeName); 578tracker.TrackAction(entity, description.LastSegmentInfo.TargetContainer, UpdateOperations.Add); 697Debug.Assert(requestDescription.LastSegmentInfo != null, "requestDescription.LastSegmentInfo != null"); 698Debug.Assert(requestDescription.LastSegmentInfo.TargetContainer != null, "requestDescription.LastSegmentInfo.TargetContainer != null"); 700this.RequestDescription.UpdateAndCheckEpmFeatureVersion(this.description.LastSegmentInfo.TargetContainer, this.Service); 705SegmentInfo segmentInfo = requestDescription.LastSegmentInfo; 743if (requestDescription.LastSegmentInfo.TargetContainer != null) 745DataServiceConfiguration.CheckResourceRights(requestDescription.LastSegmentInfo.TargetContainer, EntitySetRights.WriteAppend); 757this.tracker.TrackAction(resourceInPayload, requestDescription.LastSegmentInfo.TargetContainer, UpdateOperations.Add); 923WebUtil.CheckResourceExists(resourceCookie != null, requestDescription.LastSegmentInfo.Identifier); 1096Debug.Assert(!requestDescription.LastSegmentInfo.HasKeyValues, "CreateSegments must have caught this issue.");
System\Data\Services\Serializers\Serializer.cs (1)
104return this.requestDescription.LastSegmentInfo.TargetContainer;
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
523WebUtil.CheckResourceExists(targetResource != null, description.LastSegmentInfo.Identifier);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
245string relativeUri = this.RequestDescription.LastSegmentInfo.Identifier;
System\Data\Services\WebUtil.cs (1)
464description.LastSegmentInfo.HasKeyValues)