31 references to IsOfKind
System.Data.Services (31)
System\Data\Services\DataService.cs (2)
1122else if (description.Property != null && description.Property.IsOfKind(ResourcePropertyKind.Key)) 1207if (description.Property != null && description.Property.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\Providers\EntityPropertyMappingInfo.cs (1)
203if (!resourceProperty.IsOfKind(currentSegment == srcPathSegments.Length - 1 ? ResourcePropertyKind.Primitive : ResourcePropertyKind.ComplexType))
System\Data\Services\Providers\ObjectContextServiceProvider.cs (5)
750if (!property.IsOfKind(ResourcePropertyKind.Key)) 2126if (resourceProperty.IsOfKind(ResourcePropertyKind.ComplexType) && propertyInformation.PathGiven) 2158if (resourceProperty.IsOfKind(ResourcePropertyKind.ComplexType)) 2175if (resourceProperty.IsOfKind(ResourcePropertyKind.ComplexType)) 2259if (subProperty.IsOfKind(ResourcePropertyKind.ComplexType))
System\Data\Services\Providers\ResourceType.cs (9)
321List<ResourceProperty> key = rootType.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.Key)).ToList(); 351ReadOnlyCollection<ResourceProperty> etag = new ReadOnlyCollection<ResourceProperty>(this.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.ETag)).ToList()); 852if (!deserializer.IsUpdateOperation || clientProp == null || !clientProp.IsOfKind(ResourcePropertyKind.Key)) 871Debug.Assert(key[0].IsOfKind(ResourcePropertyKind.Key), "must be key property"); 1058if (property.IsOfKind(ResourcePropertyKind.Key)) 1071Debug.Assert(!property.IsOfKind(ResourcePropertyKind.ETag), "This check must have been done in ResourceProperty.ValidatePropertyParameters method"); 1072Debug.Assert(property.IsOfKind(ResourcePropertyKind.Primitive), "This check must have been done in ResourceProperty.ValidatePropertyParameters method"); 1075if (property.IsOfKind(ResourcePropertyKind.ETag)) 1226if (this.propertiesDeclaredOnThisType.Where(p => p.IsOfKind(ResourcePropertyKind.Key)).FirstOrDefault() == null)
System\Data\Services\RequestQueryProcessor.cs (2)
454if (!keyProp.IsOfKind(ResourcePropertyKind.Key)) 1062if (!keyProp.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\RequestUriProcessor.cs (2)
893Debug.Assert(segment.ProjectedProperty.IsOfKind(ResourcePropertyKind.Primitive), "must be primitive type property"); 1224Debug.Assert(keyProperty.IsOfKind(ResourcePropertyKind.Key), "keyProperty.IsOfKind(ResourcePropertyKind.Key)");
System\Data\Services\Serializers\JsonDeserializer.cs (1)
568if (!this.Update || !resourceProperty.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\Serializers\JsonSerializer.cs (1)
786objectIsResource || !property.IsOfKind(ResourcePropertyKind.Key),
System\Data\Services\Serializers\MetadataSerializer.cs (2)
559Debug.Assert(resourceProperty.IsOfKind(ResourcePropertyKind.Primitive), "property must be of primitive type"); 562if (resourceProperty.IsOfKind(ResourcePropertyKind.Key) || (resourceProperty.Type.IsValueType && Nullable.GetUnderlyingType(resourceProperty.Type) == null))
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
443if (this.Update && property.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\Serializers\Serializer.cs (1)
745Debug.Assert(property.IsOfKind(ResourcePropertyKind.Key), "must be key property");
System\Data\Services\Serializers\SyndicationSerializer.cs (4)
1045navProperty.IsOfKind(ResourcePropertyKind.ResourceReference) || 1046navProperty.IsOfKind(ResourcePropertyKind.ResourceSetReference), 1050string linkType = navProperty.IsOfKind(ResourcePropertyKind.ResourceReference) ? XmlConstants.AtomEntryElementName : XmlConstants.AtomFeedElementName; 1086if (navProperty.IsOfKind(ResourcePropertyKind.ResourceSetReference))