System\Data\Services\Providers\ReflectionServiceProvider.cs (18)
79Debug.Assert(targetType != null && targetType.ResourceTypeKind == ResourceTypeKind.EntityType, "targetType != null && targetType.ResourceTypeKind == ResourceTypeKind.EntityType");
559else if (baseResourceType.ResourceTypeKind != ResourceTypeKind.EntityType)
575ResourceType entityType = ReflectionServiceProvider.CreateResourceType(ancestors[i], ResourceTypeKind.EntityType, baseResourceType, knownTypes, childTypes);
652if (resourceType.ResourceTypeKind == ResourceTypeKind.Primitive)
655if (parentResourceType.BaseType == null && parentResourceType.ResourceTypeKind == ResourceTypeKind.EntityType && IsPropertyKeyProperty(property, out currentKeyKind))
683else if (resourceType.ResourceTypeKind == ResourceTypeKind.ComplexType)
687else if (resourceType.ResourceTypeKind == ResourceTypeKind.EntityType)
698if (resourceType.ResourceTypeKind == ResourceTypeKind.ComplexType)
704Debug.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))
733if (resourceType.ResourceTypeKind == ResourceTypeKind.EntityType)
762if (parentResourceType.ResourceTypeKind == ResourceTypeKind.EntityType &&
797resourceType = ReflectionServiceProvider.CreateResourceType(type, ResourceTypeKind.ComplexType, null, knownTypes, childTypes);
847resourceType.ResourceTypeKind == ResourceTypeKind.EntityType)
861if (resourceType.ResourceTypeKind == ResourceTypeKind.Primitive)
945ResourceTypeKind kind,