110 references to Name
System.Data.Services (110)
System\Data\Services\DataService.cs (5)
1124throw DataServiceException.CreateBadRequestError(Strings.DataService_CannotUpdateKeyProperties(description.Property.Name)); 1209throw DataServiceException.CreateBadRequestError(Strings.DataService_CannotUpdateKeyProperties(description.Property.Name)); 1534ResourceProperty resProperty = openTypeParentResourceType.Properties.First(p => p.Name == currentSegment.Identifier); 1637dataService.Updatable.SetReference(parentEntity, description.Property.Name, null); 1644dataService.Updatable.RemoveReferenceFromCollection(parentEntity, description.Property.Name, childEntity);
System\Data\Services\Internal\PropertyAccessVisitor.cs (1)
51propertyName = resourceProperty.Name;
System\Data\Services\KeyInstance.cs (2)
147if (!this.namedValues.TryGetValue(property.Name, out unconvertedValue)) 159this.namedValues[property.Name] = convertedValue;
System\Data\Services\Providers\BasicExpandProvider.cs (2)
518Debug.Assert(property == null || String.Equals(property.Name, name, StringComparison.Ordinal), "The name of the property must match the specified name."); 860this.AddProjectedProperty(property.Name, property);
System\Data\Services\Providers\DataServiceProviderWrapper.cs (3)
550string associationSetKey = resourceSet.Name + '_' + resourceType.FullName + '_' + resourceProperty.Name; 575relatedProperty = relatedType.TryResolvePropertyName(relatedEnd.ResourceProperty.Name); 707if (resourceType.TryResolvePropertiesDeclaredOnThisTypeByName(resourceProperty.Name) != null)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (4)
122sourceEntityType.NavigationProperties.TryGetValue(resourceProperty.Name, false /*ignoreCase*/, out sourceNavigationProperty); 2128propertyInformation.SourcePath = resourceProperty.Name + "/" + propertyInformation.SourcePath; 2256String sourcePath = epmSourcePath + "/" + subProperty.Name; 2257String targetPath = epmTargetPath + "/" + subProperty.Name;
System\Data\Services\Providers\ProjectionNode.cs (1)
44Debug.Assert(property == null || property.Name == propertyName, "If the property is specified its name must match.");
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
84string associationName = resourceType.Name + '_' + resourceProperty.Name;
System\Data\Services\Providers\ResourceAssociationSet.cs (2)
132(end.ResourceProperty != null && resourceProperty != null && end.ResourceProperty.Name == resourceProperty.Name))
System\Data\Services\Providers\ResourceAssociationSetEnd.cs (1)
54if (resourceProperty != null && (resourceType.TryResolvePropertyName(resourceProperty.Name) == null || resourceProperty.TypeKind != ResourceTypeKind.EntityType))
System\Data\Services\Providers\ResourceProperty.cs (4)
124throw new InvalidOperationException(Strings.ResourceProperty_MimeTypeAttributeEmpty(this.Name)); 129throw new InvalidOperationException(Strings.ResourceProperty_MimeTypeAttributeOnNonPrimitive(this.Name, this.ResourceType.FullName)); 134throw new InvalidOperationException(Strings.ResourceProperty_MimeTypeNotValid(value, this.Name)); 304throw new InvalidOperationException(Strings.ResourceProperty_Sealed(this.Name));
System\Data\Services\Providers\ResourceType.cs (16)
843Strings.PlainXml_NavigationPropertyNotSupported(clientProp.Name)); 883return this.Properties.FirstOrDefault(p => p.Name == propertyName); 892return this.PropertiesDeclaredOnThisType.FirstOrDefault(p => p.Name == propertyName); 951throw DataServiceException.CreateBadRequestError(Strings.BadRequest_PropertyValueCannotBeSet(resourceProperty.Name)); 965throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInSettingPropertyValue(resourceProperty.Name), exception); 992return StringComparer.OrdinalIgnoreCase.Compare(a.Name, b.Name); 1052if (resourceProperty.Name == property.Name) 1054throw new InvalidOperationException(Strings.ResourceType_PropertyWithSameNameAlreadyExists(resourceProperty.Name, this.FullName)); 1111propertyInfo = this.InstanceType.GetProperty(resourceProperty.Name, bindingFlags); 1114throw new DataServiceException(500, Strings.BadProvider_UnableToGetPropertyInfo(this.FullName, resourceProperty.Name)); 1164return this.PropertiesDeclaredOnThisType.Any(p => p.Name == propertyToLookFor); 1218if (this.propertiesDeclaredOnThisType.Where(p => p.Name == rp.Name).FirstOrDefault() != null) 1220throw new InvalidOperationException(Strings.ResourceType_PropertyWithSameNameAlreadyExists(rp.Name, this.FullName));
System\Data\Services\RequestQueryProcessor.cs (4)
426throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(property.Name, resourceType.FullName)); 478segments.Add(new ExpandSegment(property.Name, filter, resourceSet.PageSize, resourceSet, property, internalOrderingInfo)); 491segments.Add(new ExpandSegment(property.Name, filter, this.service.Configuration.MaxResultsPerCollection, resourceSet, property, null)); 1067orderBy.Append(separator).Append(keyProp.Name).Append(Space).Append(AscendingOrderIdentifier);
System\Data\Services\RequestUriProcessor.cs (5)
888throw DataServiceException.CreateResourceNotFound(segment.ProjectedProperty.Name); 1117MemberExpression body = Expression.Property(parameter, property.Name); 1141Expression.Property(parameter, property.Name), 1229keyValue = key.NamedValues[keyProperty.Name]; 1240e = Expression.Property(parameter, keyProperty.Name);
System\Data\Services\Serializers\Deserializer.cs (6)
207return JsonDeserializer.ConvertValues(value, property.Name, property.Type, provider); 211return PlainXmlDeserializer.ConvertValuesForXml(value, property.Name, property.Type); 295throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingPropertyValue(description.Property.Name, description.Property.Type), e); 675service.Updatable.SetReference(entityGettingModified, description.Property.Name, linkResource); 679service.Updatable.AddReferenceToCollection(entityGettingModified, description.Property.Name, linkResource); 801service.Updatable.SetValue(declaringResource, resourceProperty.Name, propertyValue);
System\Data\Services\Serializers\JsonDeserializer.cs (7)
559SegmentInfo segmentInfo = CreateSegment(resourceProperty, resourceProperty.Name, null, true /* singleResult */); 784throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidPropertyNameSpecified(resourceProperty.Name, parentResourceType.FullName)); 792SegmentInfo segmentInfo = CreateSegment(resourceProperty, resourceProperty.Name, propertySet, true /* singleResult */); 799this.Updatable.SetReference(resource, resourceProperty.Name, propertyValue); 806throw DataServiceException.CreateBadRequestError(Strings.BadRequest_CannotSetCollectionsToNull(resourceProperty.Name)); 810SegmentInfo segmentInfo = CreateSegment(resourceProperty, resourceProperty.Name, propertySet, true /* singleResult */); 818this.Updatable.AddReferenceToCollection(resource, resourceProperty.Name, resourceInstance);
System\Data\Services\Serializers\JsonSerializer.cs (1)
673string propertyName = property.Name;
System\Data\Services\Serializers\MetadataSerializer.cs (17)
362xmlWriter.WriteAttributeString(XmlConstants.Name, property.Name); 488xmlWriter.WriteAttributeString(XmlConstants.Name, resourceProperty.Name); 504var currentEpmInfos = type.OwnEpmInfo.Where(e => e.SourcePath.Split('/').First() == resourceProperty.Name); 511xmlWriter.WriteAttributeString(XmlConstants.Name, resourceProperty.Name); 520var currentEpmInfos = type.OwnEpmInfo.Where(e => e.SourcePath.Split('/').First() == resourceProperty.Name); 521WriteEpmProperties(xmlWriter, currentEpmInfos, currentEpmInfos.Any(ei => ei.SourcePath == resourceProperty.Name), true); 531xmlWriter.WriteAttributeString(XmlConstants.Name, resourceProperty.Name); 538throw new InvalidOperationException(Strings.MetadataSerializer_NoResourceAssociationSetForNavigationProperty(resourceProperty.Name, type.FullName)); 846string associationTypeName = end1.ResourceType.Name + '_' + end1.ResourceProperty.Name; 849associationTypeName = associationTypeName + '_' + end2.ResourceType.Name + '_' + end2.ResourceProperty.Name; 867lookupName = lookupName + '_' + resourceProperty.Name; 1039end2Name = navigationProperty.Name; 1043end1Name = navigationProperty.Name; 1085Debug.Assert(resourceType.TryResolvePropertiesDeclaredOnThisTypeByName(navigationProperty.Name) != null, "navigationProperty must be declared on resourceType."); 1087string associationSetKey = resourceSet.Name + '_' + resourceType.FullName + '_' + navigationProperty.Name; 1115reverseAssociationSetKey = relatedEnd.ResourceSet.Name + '_' + relatedEnd.ResourceProperty.ResourceType.FullName + '_' + relatedEnd.ResourceProperty.Name; 1119reverseAssociationSetKey = relatedEnd.ResourceSet.Name + "_Null_" + resourceType.FullName + '_' + navigationProperty.Name;
System\Data\Services\Serializers\PlainXmlDeserializer.cs (2)
169propertyName = segmentInfo.ProjectedProperty.Name; 530String appliedPropertyName = resourceProperty != null ? resourceProperty.Name : propertyName;
System\Data\Services\Serializers\PlainXmlSerializer.cs (2)
289string propertyName = property.Name; 300this.WritePrimitiveValue(propertyValue, property.Name, property.ResourceType);
System\Data\Services\Serializers\Serializer.cs (5)
274return expanded.GetExpandedPropertyValue(property.Name); 525return this.PushSegment(property.Name, current); 751throw new InvalidOperationException(Strings.Serializer_NullKeysAreNotSupported(property.Name)); 758resultBuilder.Append(property.Name); 765resultBuilder.Append(property.Name);
System\Data\Services\Serializers\SyndicationSerializer.cs (16)
235title = this.RequestDescription.Property.Name; 795if (SyndicationSerializer.EpmNeedToSkip(currentSourceRoot, property.Name)) 808generator.Emit(OpCodes.Ldstr, property.Name); 829if (SyndicationSerializer.EpmNeedToSkip(currentSourceRoot, property.Name)) 834WritePrimitiveValue(propertyValue, property.Name, property.ResourceType.FullName, content); 840string propertyName = property.Name; 846(this.ShouldExpandSegment(property.Name)) ? GetExpandedProperty(this.Provider, expanded, customObject, property) : null; 859relativeUri + "/" + property.Name, 861SyndicationSerializer.EpmGetComplexPropertySegment(currentSourceRoot, property.Name)); 1052string segmentIdentifier = navProperty.Name; 1054if (!this.ShouldExpandSegment(navProperty.Name)) 1057XmlConstants.DataWebRelatedNamespace + navProperty.Name, 1058navProperty.Name, 1075link.RelationshipType = XmlConstants.DataWebRelatedNamespace + navProperty.Name; 1076link.Title = navProperty.Name; 1103navProperty.Name,
System\Data\Services\UpdatableWrapper.cs (1)
418etagPropertyInfo[i] = new KeyValuePair<string, object>(etagProperties[i].Name, propertyValue);
System\Data\Services\WebUtil.cs (2)
922keyValue = service.Updatable.GetValue(resource, property.Name); 1499object result = projectedResult.GetProjectedPropertyValue(propertyName ?? resourceProperty.Name);