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