35 references to TypeKind
System.Data.Services (35)
System\Data\Services\Parsing\RequestQueryParser.cs (2)
2053ResourceSetWrapper container = this.currentSegmentInfo.ResourceSet == null || property == null || property.TypeKind != ResourceTypeKind.EntityType ? 2059if (property.TypeKind == ResourceTypeKind.EntityType && container == null)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
915if (node.Property == null || node.Property.TypeKind != ResourceTypeKind.EntityType)
System\Data\Services\Providers\DataServiceProviderWrapper.cs (2)
837if (property.TypeKind == ResourceTypeKind.EntityType && this.GetContainer(resourceSet, resourceType, property) == null) 1148if (property.TypeKind != ResourceTypeKind.EntityType)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
746Debug.Assert(property.TypeKind == ResourceTypeKind.Primitive, "property.TypeKind == ResourceTypeKind.Primitive"); 790if (property.TypeKind == ResourceTypeKind.EntityType) 2404Debug.Assert(resourceProperty != null && resourceProperty.TypeKind == ResourceTypeKind.EntityType, "property must be a navigation property");
System\Data\Services\Providers\ResourceAssociationSetEnd.cs (1)
54if (resourceProperty != null && (resourceType.TryResolvePropertyName(resourceProperty.Name) == null || resourceProperty.TypeKind != ResourceTypeKind.EntityType))
System\Data\Services\Providers\ResourceType.cs (1)
1070Debug.Assert(property.TypeKind == ResourceTypeKind.Primitive, "This check must have been done in ResourceProperty.ValidatePropertyParameters method");
System\Data\Services\RequestQueryProcessor.cs (2)
420if (property.TypeKind == ResourceTypeKind.EntityType) 630switch (property.TypeKind)
System\Data\Services\RequestUriProcessor.cs (1)
872segment.ProjectedProperty.TypeKind != ResourceTypeKind.EntityType)
System\Data\Services\Serializers\Deserializer.cs (4)
203Debug.Assert(property.TypeKind == ResourceTypeKind.Primitive, "This method must be called for primitive types only"); 786resourceProperty.TypeKind == ResourceTypeKind.ComplexType || 787resourceProperty.TypeKind == ResourceTypeKind.Primitive, 791if (resourceProperty.TypeKind == ResourceTypeKind.Primitive)
System\Data\Services\Serializers\JsonDeserializer.cs (4)
557else if (resourceProperty.TypeKind == ResourceTypeKind.ComplexType) 565else if (resourceProperty.TypeKind == ResourceTypeKind.Primitive) 577Debug.Assert(ResourceTypeKind.EntityType == resourceProperty.TypeKind, "only expecting nav properties"); 776Debug.Assert(resourceProperty != null && resourceProperty.TypeKind == ResourceTypeKind.EntityType, "its must be a nav property");
System\Data\Services\Serializers\JsonSerializer.cs (2)
679bool mayDefer = property.TypeKind == ResourceTypeKind.EntityType; 809if (property.TypeKind != ResourceTypeKind.EntityType ||
System\Data\Services\Serializers\MetadataSerializer.cs (4)
485if (resourceProperty.TypeKind == ResourceTypeKind.Primitive) 527ResourceTypeKind.EntityType == resourceProperty.TypeKind, 924if (property.TypeKind == ResourceTypeKind.EntityType) 1146foreach (ResourceProperty navigationProperty in resourceType.PropertiesDeclaredOnThisType.Where(p => p.TypeKind == ResourceTypeKind.EntityType))
System\Data\Services\Serializers\PlainXmlSerializer.cs (2)
293if (property.TypeKind == ResourceTypeKind.ComplexType) 299Debug.Assert(property.TypeKind == ResourceTypeKind.Primitive, "property.TypeKind == ResourceTypeKind.Primitive");
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
468if (property.TypeKind != ResourceTypeKind.EntityType)
System\Data\Services\Serializers\SyndicationSerializer.cs (5)
793foreach (ResourceProperty property in resourceType.Properties.Where(p => p.TypeKind == ResourceTypeKind.Primitive)) 826foreach (ResourceProperty property in resourceType.Properties.Where(p => p.TypeKind == ResourceTypeKind.Primitive)) 841if (property.TypeKind == ResourceTypeKind.EntityType) 851if (property.TypeKind == ResourceTypeKind.ComplexType) 944if (property != null && property.TypeKind == ResourceTypeKind.EntityType)