86 references to EntityType
System.Data.Services (86)
System\Data\Services\DataService.cs (2)
1458
Debug.Assert(ResourceTypeKind.
EntityType
== resourceType.ResourceTypeKind, "ResourceTypeKind.EntityType == " + resourceType.ResourceTypeKind);
1539
Debug.Assert(openTypeParentResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "Entity Type expected");
System\Data\Services\Epm\EpmContentSerializer.cs (1)
311
case ResourceTypeKind.
EntityType
:
System\Data\Services\Parsing\RequestQueryParser.cs (4)
79
Debug.Assert(typeForIt.ResourceTypeKind != ResourceTypeKind.
EntityType
|| setForIt != null, "setForIt cannot be null if typeForIt is an entity type.");
103
Debug.Assert(typeForIt.ResourceTypeKind != ResourceTypeKind.
EntityType
|| setForIt != null, "setForIt cannot be null if typeForIt is an entity type.");
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\BaseServiceProvider.cs (1)
822
if (resourceType != null && resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
915
if (node.Property == null || node.Property.TypeKind != ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\DataServiceProviderWrapper.cs (4)
809
Debug.Assert(resourceType != null && resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "Resource should be non-null and of an entity type");
827
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
837
if (property.TypeKind == ResourceTypeKind.
EntityType
&& this.GetContainer(resourceSet, resourceType, property) == null)
1148
if (property.TypeKind != ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (6)
360
Debug.Assert(resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "resourceType.ResourceTypeKind == ResourceTypeKind.EntityType - expecting an entity type");
422
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
790
if (property.TypeKind == ResourceTypeKind.
EntityType
)
1346
ResourceTypeKind resourceTypeKind = cspaceType.BuiltInTypeKind == BuiltInTypeKind.EntityType ? ResourceTypeKind.
EntityType
: ResourceTypeKind.ComplexType;
2404
Debug.Assert(resourceProperty != null && resourceProperty.TypeKind == ResourceTypeKind.
EntityType
, "property must be a navigation property");
2785
resultType == null || resultType.ResourceTypeKind != ResourceTypeKind.
EntityType
||
System\Data\Services\Providers\ReflectionServiceProvider.cs (11)
79
Debug.Assert(targetType != null && targetType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "targetType != null && targetType.ResourceTypeKind == ResourceTypeKind.EntityType");
559
else if (baseResourceType.ResourceTypeKind != ResourceTypeKind.
EntityType
)
575
ResourceType entityType = ReflectionServiceProvider.CreateResourceType(ancestors[i], ResourceTypeKind.
EntityType
, baseResourceType, knownTypes, childTypes);
655
if (parentResourceType.BaseType == null && parentResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
&& IsPropertyKeyProperty(property, out currentKeyKind))
687
else if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
704
Debug.Assert(resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "Must be an entity type");
714
(resourceType.ResourceTypeKind != ResourceTypeKind.
EntityType
&& collection) ||
715
(resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
&& parentResourceType.ResourceTypeKind == ResourceTypeKind.ComplexType))
733
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
762
if (parentResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
&&
847
resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\ResourceAssociationSetEnd.cs (1)
54
if (resourceProperty != null && (resourceType.TryResolvePropertyName(resourceProperty.Name) == null || resourceProperty.TypeKind != ResourceTypeKind.
EntityType
))
System\Data\Services\Providers\ResourceContainer.cs (1)
56
if (elementType.ResourceTypeKind != ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\ResourceProperty.cs (1)
269
if (propertyResourceType.ResourceTypeKind != ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\ResourceType.cs (9)
224
if (this.resourceTypeKind != ResourceTypeKind.
EntityType
&& value == true)
336
(this.ResourceTypeKind != ResourceTypeKind.
EntityType
&& this.keyProperties.Count == 0) ||
337
(this.ResourceTypeKind == ResourceTypeKind.
EntityType
&& this.keyProperties.Count > 0),
619
if (this.ResourceTypeKind != ResourceTypeKind.
EntityType
)
799
if (propertyType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
841
case ResourceTypeKind.
EntityType
:
1065
if (this.ResourceTypeKind != ResourceTypeKind.
EntityType
)
1077
if (this.ResourceTypeKind != ResourceTypeKind.
EntityType
)
1224
else if (this.ResourceTypeKind == ResourceTypeKind.
EntityType
)
System\Data\Services\Providers\ServiceOperation.cs (2)
78
if ((resultType == null || resultType.ResourceTypeKind != ResourceTypeKind.
EntityType
) && resultSet != null)
83
if (resultType != null && resultType.ResourceTypeKind == ResourceTypeKind.
EntityType
&& (resultSet == null || !resultSet.ResourceType.IsAssignableFrom(resultType)))
System\Data\Services\RequestQueryProcessor.cs (3)
420
if (property.TypeKind == ResourceTypeKind.
EntityType
)
648
case ResourceTypeKind.
EntityType
:
725
if (this.description.TargetResourceType == null || (this.description.TargetResourceType.ResourceTypeKind != ResourceTypeKind.
EntityType
))
System\Data\Services\RequestUriProcessor.cs (2)
872
segment.ProjectedProperty.TypeKind != ResourceTypeKind.
EntityType
)
1267
case ResourceTypeKind.
EntityType
:
System\Data\Services\Serializers\Deserializer.cs (1)
1012
Debug.Assert(resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "resourceType.ResourceTypeKind == ResourceTypeKind.EntityType");
System\Data\Services\Serializers\JsonDeserializer.cs (5)
380
targetResourceType.ResourceTypeKind == ResourceTypeKind.ComplexType || targetResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
,
396
if ((uri != null || resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
) && segmentInfo.TargetKind == RequestTargetKind.OpenProperty)
577
Debug.Assert(ResourceTypeKind.
EntityType
== resourceProperty.TypeKind, "only expecting nav properties");
655
Debug.Assert(openPropertyResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "resource must be of entity type");
776
Debug.Assert(resourceProperty != null && resourceProperty.TypeKind == ResourceTypeKind.
EntityType
, "its must be a nav property");
System\Data\Services\Serializers\JsonSerializer.cs (6)
397
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
579
case ResourceTypeKind.
EntityType
:
623
Debug.Assert(resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "resource must be entity type");
679
bool mayDefer = property.TypeKind == ResourceTypeKind.
EntityType
;
776
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
809
if (property.TypeKind != ResourceTypeKind.
EntityType
||
System\Data\Services\Serializers\MetadataSerializer.cs (8)
163
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
293
if (ResourceTypeKind.
EntityType
== type.ResourceTypeKind)
319
Debug.Assert(entityType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "Type must be entityType");
496
if (type.ResourceTypeKind == ResourceTypeKind.
EntityType
&&
527
ResourceTypeKind.
EntityType
== resourceProperty.TypeKind,
924
if (property.TypeKind == ResourceTypeKind.
EntityType
)
1146
foreach (ResourceProperty navigationProperty in resourceType.PropertiesDeclaredOnThisType.Where(p => p.TypeKind == ResourceTypeKind.
EntityType
))
1194
resultType == null || resultType.ResourceTypeKind != ResourceTypeKind.
EntityType
||
System\Data\Services\Serializers\PlainXmlDeserializer.cs (3)
166
segmentInfo.ProjectedProperty.ResourceType.ResourceTypeKind != ResourceTypeKind.
EntityType
,
486
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
575
case ResourceTypeKind.
EntityType
:
System\Data\Services\Serializers\PlainXmlSerializer.cs (1)
337
Debug.Assert(propertyResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "EntityType expected.");
System\Data\Services\Serializers\Serializer.cs (1)
461
if (propertyResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
System\Data\Services\Serializers\SyndicationDeserializer.cs (3)
357
if (currentResourceType.ResourceTypeKind != ResourceTypeKind.
EntityType
)
381
Debug.Assert(currentResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
, "only expecting entity types");
468
if (property.TypeKind != ResourceTypeKind.
EntityType
)
System\Data\Services\Serializers\SyndicationSerializer.cs (8)
203
resourcePropertyType.ResourceTypeKind == ResourceTypeKind.
EntityType
,
752
if (absoluteUri == null && resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
764
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
841
if (property.TypeKind == ResourceTypeKind.
EntityType
)
926
propertyResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
,
944
if (property != null && property.TypeKind == ResourceTypeKind.
EntityType
)
1028
propertyResourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
,
1037
if (resourceType.ResourceTypeKind == ResourceTypeKind.
EntityType
)
System\Data\Services\WebUtil.cs (1)
223
if (kind < ResourceTypeKind.
EntityType
||