498 references to Helper
System.Data.Entity (498)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (12)
789if (!(Helper.IsGeographicType(primitiveType) && valueKind == PrimitiveTypeKind.Geography) 790&& !(Helper.IsGeometricType(primitiveType) && valueKind == PrimitiveTypeKind.Geometry)) 1638memberTypes.Add(Helper.GetModelTypeUsage(members[idx])); 1699Debug.Assert(null != Helper.GetModelTypeUsage(property), "EdmMember metadata has a TypeUsage of null"); 1701return Helper.GetModelTypeUsage(property); 1726if (Helper.IsRelationshipEndMember(foundMember) || 1727Helper.IsEdmProperty(foundMember) || 1728Helper.IsNavigationProperty(foundMember)) 1730return Helper.GetModelTypeUsage(foundMember); 1958if (Helper.IsRowType(item)) 1970else if (Helper.IsCollectionType(item)) 1974else if (Helper.IsRefType(item))
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
223if (Helper.IsRelationshipEndMember(expression.Property)) 232else if (Helper.IsNavigationProperty(expression.Property))
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
512else if (Helper.IsNavigationProperty(e.Property))
System\Data\Common\CommandTrees\ValueExpressions.cs (4)
34Debug.Assert(Helper.AsPrimitive(resultType.EdmType).ClrEquivalentType == (value.GetType().IsEnum ? value.GetType().GetEnumUnderlyingType() : value.GetType()), 218Debug.Assert(Helper.IsEdmProperty(property) || 219Helper.IsRelationshipEndMember(property) || 220Helper.IsNavigationProperty(property), "DbExpression property must be a property, navigation property, or relationship end");
System\Data\Common\DataRecord.cs (1)
60Debug.Assert(Helper.IsRowType(_edmUsage.EdmType), "Edm type should be Row Type");
System\Data\Common\DataRecordInfo.cs (1)
64if (Helper.IsStructuralType(metadata.EdmType) == (0 < fieldList.Count))
System\Data\Common\DbCommandDefinition.cs (2)
91if(Helper.IsPrimitiveType(type.EdmType)) 257if (!Helper.IsUnboundedFacetValue(maxLengthFacet))
System\Data\Common\DbXmlEnabledProviderManifest.cs (3)
80return GetReadOnlyCollection(type as PrimitiveType, _facetDescriptions, Helper.EmptyFacetDescriptionEnumerable); 105throw EntityUtil.ProviderIncompatible(Strings.IncorrectProviderManifest + Helper.CombineErrorMessage(errors)); 139this._functions = Helper.EmptyEdmFunctionReadOnlyCollection;
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
312if (Helper.AreSameSpatialUnionType(primitiveFromType, primitiveToType))
System\Data\Common\EntitySql\SemanticAnalyzer.cs (8)
322if (Helper.IsCollectionType(resultType.EdmType)) 326else if (Helper.IsRowType(resultType.EdmType)) 333else if (Helper.IsAssociationType(resultType.EdmType)) 1343TypeUsage memberModelTypeUsage = Helper.GetModelTypeUsage(member); 1385if (Helper.IsPrimitiveType(memberModelTypeUsage.EdmType) && 2227if (Helper.IsAssociationType(leftElemType.EdmType)) 2232if (Helper.IsAssociationType(rightElemType.EdmType)) 2452FacetDescription facetDescription = Helper.GetFacet(type.ProviderManifest.GetFacetDescriptions(type), facetName);
System\Data\Common\EntitySql\SemanticResolver.cs (2)
619if (Helper.IsStructuralType(valueExpr.ResultType.EdmType)) 1049return !Helper.IsCollectionType(toType.EdmType);
System\Data\Common\Internal\Materialization\Shaper.cs (2)
642if (Helper.IsGeographicTypeKind(spatialTypeKind)) 651Debug.Assert(Helper.IsGeometricTypeKind(spatialTypeKind));
System\Data\Common\Internal\Materialization\Translator.cs (8)
1051if (Helper.IsSpatialType(columnType, out primitiveColumnType)) 1071if (Helper.IsSpatialType(columnType, out primitiveColumnType)) 1073primitiveColumnType = Helper.IsGeographicType((PrimitiveType)columnType.EdmType) ? PrimitiveTypeKind.Geography : PrimitiveTypeKind.Geometry; 1605TypeUsage edmType = Helper.GetModelTypeUsage(columnMap.Type); 2075if (Helper.IsSpatialType(columnType, out typeKind)) 2077Debug.Assert(Helper.IsGeographicType((PrimitiveType)columnType.EdmType) || Helper.IsGeometricType((PrimitiveType)columnType.EdmType), "Spatial primitive type is neither Geometry or Geography?"); 2078result = Emit_Conditional_NotDBNull(Helper.IsGeographicType((PrimitiveType)columnType.EdmType) ? Emit_EnsureType(Emit_Shaper_GetGeographyColumnValue(ordinal), type)
System\Data\Common\Internal\Materialization\Util.cs (5)
36if (Helper.IsPrimitiveType(type)) 58if (!Helper.IsPrimitiveType(ospaceType) && !Helper.IsEntityType(ospaceType) && !Helper.IsComplexType(ospaceType)) 65if (Helper.IsPrimitiveType(ospaceType))
System\Data\Common\Utils\CommandHelper.cs (3)
139if (Helper.IsSpatialType(parameterType)) 154if (Helper.IsGeographicType(parameterType)) 160Debug.Assert(Helper.IsGeometricType(parameterType));
System\Data\Common\Utils\MetadataHelper.cs (12)
121if (Helper.IsSpatialType(expectedEdmType, out isGeographic)) 315Debug.Assert(Helper.IsEdmProperty(member) || Helper.IsAssociationEndMember(member)); 316if (Helper.IsEdmProperty(member)) 358if (Helper.IsRefType(type)) 392if (specificType.Equals(typeInWorkSpace) == false && Helper.IsSubtypeOf(typeInWorkSpace, specificType)) 409if (Helper.IsRefType(type)) 565if (Helper.IsEntitySet(extent)) 601if (Helper.IsRelationshipSet(extent)) 657if (Helper.IsRelationshipSet(extent)) 698if (Helper.IsEntityType(member.DeclaringType) && 699Helper.IsEdmProperty(member))
System\Data\EntityClient\EntityCommandDefinition.cs (5)
194Debug.Assert(Helper.IsScalarType(elementType.EdmType) 223if (Helper.IsComplexType(resultType)) 346if (Helper.IsEnumType(type.EdmType)) 348type = TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(type.EdmType)); 350else if (Helper.IsSpatialType(type, out primitiveTypeKind))
System\Data\EntityClient\EntityParameter.cs (4)
206if (value != null && !Helper.IsScalarType(value)) 448Helper.IsSpatialType(primitiveParameterType)) 496PrimitiveType primitiveType = Helper.AsPrimitive(edmType); 498if (Helper.IsSpatialType(primitiveType))
System\Data\EntityKey.cs (5)
746new[] { DbExpressionBuilder.Constant(Helper.GetModelTypeUsage(singletonKeyMember), _singletonKeyValue) 759keyColumns[i] = DbExpressionBuilder.Constant(Helper.GetModelTypeUsage(keyMember), _compositeKeyValues[i]).As(keyMember.Name); 1097Debug.Assert(Helper.IsScalarType(keyMember.TypeUsage.EdmType), "key member must be of a scalar type"); 1101if (Helper.IsPrimitiveType(keyMemberEdmType)) 1118Debug.Assert(Helper.IsEnumType(keyMember.TypeUsage.EdmType), "Enum type expected");
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (2)
140Helper.IsSpatialType(primitivePropertyType)) 153Helper.IsSpatialType(primitivePropertyType))
System\Data\EntityModel\SchemaObjectModel\Function.cs (1)
265stringBuilder.Append(Helper.ToString(parameter.ParameterDirection));
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (1)
42primitiveTypes = primitiveTypes.Where(t => !Helper.IsSpatialType(t))
System\Data\EntityModel\SchemaObjectModel\Schema.cs (1)
170String expectedNamespacesString = Helper.GetCommaDelimitedString(expectedNamespaces);
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (2)
221if (enumUnderlyingType == null || !Helper.IsSupportedEnumUnderlyingType(enumUnderlyingType.TypeKind)) 233.Where(m => !Helper.IsEnumMemberValueInRange(enumUnderlyingType.TypeKind, (long)m.Value));
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
356location = Helper.GetFileNameFromUri(uri);
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (3)
282FacetDescription precisionFacetDescription = Helper.GetFacet(FacetDescriptions, EdmProviderManifest.PrecisionFacetName); 283FacetDescription scaleFacetDescription = Helper.GetFacet(FacetDescriptions, EdmProviderManifest.ScaleFacetName); 313FacetDescription providerFacetDescription = Helper.GetFacet(FacetDescriptions, systemFacetDescription.FacetName);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (9)
208if (Helper.IsSpatialType(scalar.Type) 382FacetDescription precisionFacetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, 401FacetDescription scaleFacetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, 439FacetDescription precisionFacetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, 475if (Helper.IsUnboundedFacetValue(maxLenFacet)) 481FacetDescription facetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.MaxLengthFacetName); 495Debug.Assert(Helper.IsSpatialType(primitiveType), "Expected spatial type"); 518if (Helper.IsVariableFacetValue(sridFacet)) 524FacetDescription facetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.SridFacetName);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (29)
211if (Helper.IsTransientType(edmType)) 242Debug.Assert(typeSpace == DataSpace.CSpace || typeSpace == DataSpace.OSpace || Helper.IsRowType(edmType) || Helper.IsCollectionType(edmType)); 297if (Helper.IsCollectionType(cdmType)) 302else if (Helper.IsRowType(cdmType)) 313else if (Helper.IsRefType(cdmType)) 317else if (Helper.IsPrimitiveType(cdmType)) 336if (Helper.IsCollectionType(clrType)) 341else if (Helper.IsRowType(clrType)) 352else if (Helper.IsRefType(clrType)) 452if (Helper.IsEnumType(edmType) ^ Helper.IsEnumType(objectType)) 466if (Helper.IsEntityType(edmType) || Helper.IsComplexType(edmType)) 470else if (Helper.IsEnumType(edmType)) 476Debug.Assert(Helper.IsAssociationType(edmType)); 526if (Helper.IsPrimitiveType(edmMember.TypeUsage.EdmType)) 528PrimitiveType memberType = Helper.GetSpatialNormalizedPrimitiveType(edmMember.TypeUsage.EdmType); 539else if (Helper.IsEnumType(edmMember.TypeUsage.EdmType)) 542Helper.IsEnumType(objectMember.TypeUsage.EdmType), 558Helper.IsCollectionType(edmMember.TypeUsage.EdmType)) 589Helper.IsScalarType(edmProperty.TypeUsage.EdmType), 592Helper.IsScalarType(objectProperty.TypeUsage.EdmType), 627if (Helper.IsEdmProperty(edmMember)) 635if (Helper.IsComplexType(edmMember.TypeUsage.EdmType)) 692Debug.Assert(Helper.IsPrimitiveType(edmEnumType.UnderlyingType)); 693Debug.Assert(Helper.IsSupportedEnumUnderlyingType(edmEnumType.UnderlyingType.PrimitiveTypeKind)); 696Debug.Assert(Helper.IsPrimitiveType(objectEnumType.UnderlyingType)); 697Debug.Assert(Helper.IsSupportedEnumUnderlyingType(objectEnumType.UnderlyingType.PrimitiveTypeKind));
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
103throw new MappingException(Helper.CombineErrorMessage(viewGenErrors));
System\Data\Mapping\ObjectTypeMapping.cs (1)
33if (Helper.IsStructuralType(cdmType))
System\Data\Mapping\StorageEntitySetMapping.cs (1)
145Helper.IsSubtypeOf(modificationFunctionMapping.EntityType, this.Set.ElementType),
System\Data\Mapping\StorageMappingItemCollection.cs (2)
107Helper.DisposeXmlReaders(readers); 240Helper.CombineErrorMessage(errors)));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
138throw new MappingException(Helper.CombineErrorMessage(viewGenResults.Errors)); 189throw new MappingException(Helper.CombineErrorMessage(viewGenResults.Errors));
System\Data\Mapping\StorageMappingItemLoader.cs (29)
975if (!(Helper.IsAssignableFrom(rootEntityType, entityType))) 1203parameterList = Helper.Concat(parameterList, deleteFunctionMapping.ParameterBindings); 1207parameterList = Helper.Concat(parameterList, insertFunctionMapping.ParameterBindings); 1211parameterList = Helper.Concat(parameterList, updateFunctionMapping.ParameterBindings); 1609if (Helper.IsStructuralType(resultType)) 1777PrimitiveType importType = Helper.AsPrimitive(importParameter.TypeUsage.EdmType); 1780if (Helper.IsSpatialType(importType)) 1782importType = Helper.GetSpatialNormalizedPrimitiveType(importType); 1800var schemaErrorMessage = Helper.IsEnumType(importParameter.TypeUsage.EdmType) ? 1805Helper.GetUnderlyingEdmTypeForEnumType(importParameter.TypeUsage.EdmType).Name) : 1949if (!Helper.IsAssignableFrom(resultComplexType, complexType)) 2393Debug.Assert(Helper.IsPrimitiveType(cTypeColumn.TypeUsage.EdmType), "S-space columns are expected to be of a primitive type."); 2454if (!Helper.IsScalarType(property.TypeUsage.EdmType)) 2843if (containerType == null || !(Helper.IsCollectionType(containerType))) 2848if (Helper.IsRefType(containerType)) 2883if (!Helper.IsScalarType(member.TypeUsage.EdmType)) 3239if (Helper.IsPrimitiveType(edmType)) 3278else if (Helper.IsEnumType(edmType)) 3432object boolObj = Helper.GetTypedAttributeValue(nav, attributeName, typeof(bool)); 3451return Helper.GetAttributeValue(nav, attributeName); 3469value = Helper.GetTypedAttributeValue(nav, attributeName, clrType); 3576sourceLocation = Helper.GetFileNameFromUri(new Uri(args.Exception.SourceUri)); 3598Helper.IsScalarType(member.TypeUsage.EdmType), 3600Debug.Assert(Helper.IsPrimitiveType(columnMember.TypeUsage.EdmType), "s-space column type must be primitive"); 3611TypeUsage storeEquivalentTypeUsage = Helper.ValidateAndConvertTypeUsage(member, 4148!Helper.IsSubtypeOf(property.TypeUsage.EdmType, complexType)) 4276TypeUsage mappedStoreType = Helper.ValidateAndConvertTypeUsage(property, 4448return Helper.IsEnumType(typeUsage.EdmType) ? 4449TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(typeUsage.EdmType), typeUsage.Facets) :
System\Data\Mapping\StorageScalarPropertyMapping.cs (2)
60Helper.IsScalarType(member.TypeUsage.EdmType), 62Debug.Assert(Helper.IsPrimitiveType(columnMember.TypeUsage.EdmType), "StorageScalarPropertyMapping must only map primitive types");
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (2)
50Helper.PairEnumerations(TypeHelpers.GetAllStructuralMembers(this.CurrentValues.StructuralType), 130if (Helper.IsSpatialType(member.TypeUsage) && !reader.IsDBNull(ordinal))
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
258if (Helper.IsSpatialType(columnType) && !reader.IsDBNull(columnOrdinal))
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (3)
214TypeUsage nodeType = Helper.GetModelTypeUsage(node); 216if (Helper.IsScalarType(nodeType.EdmType)) 218GetPropagatorResultForPrimitiveType(Helper.AsPrimitive(nodeType.EdmType), out result);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (4)
438Debug.Assert(Helper.IsPrimitiveType(property.TypeUsage.EdmType), "Properties in SSpace should be primitive."); 442return DbExpressionBuilder.Null(Helper.GetModelTypeUsage(property)); 450return DbExpressionBuilder.Null(Helper.GetModelTypeUsage(property)); 466TypeUsage propertyType = Helper.GetModelTypeUsage(property);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
539else if (!Helper.IsSpatialType(member.TypeUsage)) 543if (Helper.IsEnumType(member.TypeUsage.EdmType)) 545PrimitiveType underlyingType = Helper.AsPrimitive(member.TypeUsage.EdmType);
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (4)
370if (Helper.IsEntityType(edmType) || Helper.IsComplexType(edmType)) 374foreach (EdmMember childMember in Helper.GetAllStructuralMembers(instantiatedType) ) 392else if (Helper.IsAssociationType(edmType))
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
214Debug.Assert(!Helper.IsRefType(_generatedType)); 315Debug.Assert(!Helper.IsRefType(_generatedType));
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (2)
163EdmType constType = Helper.GetModelTypeUsage(outputMember.LeafEdmMember).EdmType; 174EdmType constType = Helper.GetModelTypeUsage(outputMember.LeafEdmMember).EdmType;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (7)
134if (Helper.IsScalarType(type)) 139Debug.Assert(Helper.AsPrimitive(type).PrimitiveTypeKind == PrimitiveTypeKind.Boolean, "Only boolean type has discrete domain."); 156Debug.Assert(Helper.IsEntityType(type) || Helper.IsComplexType(type) || Helper.IsRefType(type) || Helper.IsAssociationType(type)); 159if (Helper.IsRefType(type))
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
478if (Helper.IsRefType(prevType))
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (2)
89TypeUsage memberPathTypeUsage = Helper.GetModelTypeUsage(m_memberPath.LeafEdmMember); 90outputMemberTypeUsage = Helper.GetModelTypeUsage(outputMember.LeafEdmMember);
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (2)
232foreach (EdmMember structuralMember in Helper.GetAllStructuralMembers(possibleType)) 256needKeysOnly || Helper.IsAssociationEndMember(structuralMember));
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (2)
76TypeUsage modelTypeUsage = Helper.GetModelTypeUsage(outputMember.LeafEdmMember); 142TypeUsage modelTypeUsage = Helper.GetModelTypeUsage(outputMember.LeafEdmMember);
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (1)
194foreach (EdmMember structuralMember in Helper.GetAllStructuralMembers(m_edmType))
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (3)
100if (Helper.IsRefType(this.RestrictedMemberSlot.MemberPath.EdmType)) 136if (Helper.IsRefType(this.RestrictedMemberSlot.MemberPath.EdmType)) 160if (Helper.IsRefType(RestrictedMemberSlot.MemberPath.EdmType))
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (1)
173AssociationEndMember endMember = Helper.GetEndThatShouldBeMappedToKey(associationSet.ElementType);
System\Data\Metadata\CacheForPrimitiveTypes.cs (3)
108Helper.IsUnboundedFacetValue(facet)) 125maxLength = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.MaxLengthFacetName).MaxValue.Value; 129int newMaxLength = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.MaxLengthFacetName).MaxValue.Value;
System\Data\Metadata\Converter.cs (2)
1378if (Helper.IsUnboundedFacetValue(maxLengthFacet)) 1383MaxLength = Helper.GetFacet(primitiveType.FacetDescriptions,
System\Data\Metadata\Edm\AssociationType.cs (1)
67this.Members, Helper.IsAssociationEndMember), null);
System\Data\Metadata\Edm\ComplexType.cs (3)
71this.Members, Helper.IsEdmProperty), null); 89Debug.Assert(Helper.IsEdmProperty(member) || Helper.IsNavigationProperty(member),
System\Data\Metadata\Edm\EdmFunction.cs (1)
387builder.Append(Helper.ToString(getParameterMode(parameter)));
System\Data\Metadata\Edm\EdmType.cs (3)
181!Helper.IsEntityTypeBase(this) || 302return Helper.IsSubtypeOf(this, otherType); 328return Helper.IsAssignableFrom(this, otherType);
System\Data\Metadata\Edm\EntityContainer.cs (2)
147if (Helper.IsEntitySet(baseEntitySet)) 188if (Helper.IsRelationshipSet(baseEntitySet))
System\Data\Metadata\Edm\EntityType.cs (5)
94Debug.Assert(Helper.IsEdmProperty(member) || Helper.IsNavigationProperty(member), 145((ReadOnlyMetadataCollection<EdmMember>)this.Members), Helper.IsNavigationProperty); 162this.Members, Helper.IsEdmProperty), null); 190keyProperties.Add(new EdmProperty(keyMember.Name, Helper.GetModelTypeUsage(keyMember)));
System\Data\Metadata\Edm\EnumType.cs (3)
66Debug.Assert(Helper.IsSupportedEnumUnderlyingType(underlyingType.PrimitiveTypeKind), "Unsupported underlying type for enum."); 95Debug.Assert(Helper.IsSupportedEnumUnderlyingType(_underlyingType.PrimitiveTypeKind), 168Debug.Assert(Helper.IsEnumMemberValueInRange(UnderlyingType.PrimitiveTypeKind, Convert.ToInt64(enumMember.Value, CultureInfo.InvariantCulture)));
System\Data\Metadata\Edm\Facet.cs (2)
90if (value != null && !Helper.IsUnboundedFacetValue(result) && !Helper.IsVariableFacetValue(result) && result.FacetType.ClrType != null)
System\Data\Metadata\Edm\FacetDescription.cs (1)
277if (Helper.IsPrimitiveType(facetType))
System\Data\Metadata\Edm\ItemCollection.cs (3)
348return Helper.EmptyEdmFunctionReadOnlyCollection; 395if (TryGetValue(functionIdentity, ignoreCase, out item) && Helper.IsEdmFunction(item)) 456if (TryGetValue(name, ignoreCase, out item) && Helper.IsEntityContainer(item))
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (3)
175return Helper.EmptyEdmFunctionReadOnlyCollection; 185if (Helper.IsPrimitiveType(type) && ((PrimitiveType)type).DataSpace == DataSpace.OSpace) 192return Helper.EmptyFacetDescriptionEnumerable;
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
100return Helper.EmptyFacetDescriptionEnumerable;
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (1)
57if (!Helper.IsStrongSpatialTypeKind(typeKind))
System\Data\Metadata\Edm\RelationshipType.cs (1)
53this.Members, Helper.IsRelationshipEndMember);
System\Data\Metadata\Edm\RowType.cs (2)
95this.Members, Helper.IsEdmProperty), null); 121Debug.Assert(Helper.IsEdmProperty(member), "Only members of type Property may be added to Row types.");
System\Data\Metadata\Edm\TypeUsage.cs (6)
411if (Helper.IsRowType(edmType)) 424else if (Helper.IsCollectionType(edmType)) 430else if (Helper.IsRefType(edmType)) 435else if (Helper.IsPrimitiveType(edmType)) 451else if (Helper.IsEntityTypeBase(edmType) || Helper.IsComplexType(edmType))
System\Data\Metadata\EdmItemCollection.cs (3)
135Helper.DisposeXmlReaders(readers); 296throw EntityUtil.InvalidSchemaEncountered(Helper.CombineErrorMessage(errorCollection)); 387return _primitiveTypeMaps.GetTypes().Where(type => !Helper.IsSpatialType(type)).ToList().AsReadOnly();
System\Data\Metadata\Helper.cs (10)
298return Helper.IsEntityType(edmType) || 299Helper.IsRelationshipType(edmType); 304return Helper.IsCollectionType(edmType) || 305Helper.IsRefType(edmType) || 306Helper.IsRowType(edmType); 391if (Helper.IsGeographicTypeKind(firstType.PrimitiveTypeKind) && Helper.IsGeographicTypeKind(secondType.PrimitiveTypeKind)) 397if (Helper.IsGeometricTypeKind(firstType.PrimitiveTypeKind) && Helper.IsGeometricTypeKind(secondType.PrimitiveTypeKind)) 551return Helper.IsEnumType(type) ?
System\Data\Metadata\MetadataCache.cs (3)
658Helper.DisposeXmlReaders(readers); 709Helper.DisposeXmlReaders(sSpaceXmlReaders); 737Helper.DisposeXmlReaders(csSpaceXmlReaders);
System\Data\Metadata\MetadataWorkspace.cs (3)
212Helper.GetCommaDelimitedString( 1264if (Helper.IsPrimitiveType(edmSpaceTypeUsage.EdmType)) 1279Debug.Assert(!Helper.IsPrimitiveType(clrType) ||
System\Data\Metadata\ModelPerspective.cs (1)
47if (Helper.IsPrimitiveType(edmType))
System\Data\Metadata\ObjectHelper.cs (6)
148Helper.IsScalarType(edmProperty.TypeUsage.EdmType), 150Debug.Assert(Helper.IsPrimitiveType(columnProperty.TypeUsage.EdmType), "sspace property must contain a primitive type"); 209Helper.IsScalarType(cspaceType.EdmType), 211Debug.Assert(Helper.IsPrimitiveType(storeType.EdmType), "storeType property must be a primitive type"); 213if (Helper.IsEnumType(cspaceType.EdmType)) 218return TypeSemantics.IsSubTypeOf(TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(cspaceType.EdmType)), storeType);
System\Data\Metadata\ObjectItemCollection.cs (18)
251throw EntityUtil.InvalidSchemaEncountered(Helper.CombineErrorMessage(errors)); 270if (typesInLoading.TryGetValue(relationshipName, out edmType) && Helper.IsRelationshipType(edmType)) 291if (Helper.IsAssociationType(edmType)) 353throw EntityUtil.InvalidSchemaEncountered(Helper.CombineErrorMessage(errors)); 374if (Helper.IsEntityType(edmType)) 379else if (Helper.IsComplexType(edmType)) 384else if (Helper.IsEnumType(edmType)) 532if (Helper.IsEntityType(objectSpaceType) || Helper.IsComplexType(objectSpaceType) || Helper.IsEnumType(objectSpaceType)) 552if (Helper.IsGeometricTypeKind(modelType)) 556else if (Helper.IsGeographicTypeKind(modelType)) 578if (Helper.IsEntityType(cspaceType) || Helper.IsComplexType(cspaceType) || Helper.IsEnumType(cspaceType)) 597if (Helper.IsEntityType(edmType)) 601else if (Helper.IsComplexType(edmType)) 605else if (Helper.IsEnumType(edmType))
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (6)
346if (Helper.IsStructuralType(edmType)) 349if (Helper.IsEntityType(edmType)) 436if (!TryGetLoadedType(type, out edmType) || !Helper.IsEntityType(edmType)) 508if (Helper.IsEntityType(structuralType) && isEntityKeyProperty) 553Helper.IsAssociationType(type)) 664if (!TryGetLoadedType(clrProperty.PropertyType, out propertyType) || !Helper.IsEnumType(propertyType))
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (15)
51Debug.Assert(ospaceType is StructuralType || Helper.IsEnumType(ospaceType), "Only StructuralType or EnumType expected."); 120Debug.Assert(cspaceType is StructuralType || Helper.IsEnumType(cspaceType), "Structural or enum type expected"); 125if (Helper.IsEnumType(cspaceType) ^ type.IsEnum) 133if(Helper.IsEnumType(cspaceType)) 161if (Helper.IsEntityType(cspaceType)) 167Debug.Assert(Helper.IsComplexType(cspaceType), "Invalid type attribute encountered"); 221Debug.Assert(Helper.IsEnumType(cspaceEnumType), "Enum type expected"); 249Debug.Assert(Helper.IsEnumType(cspaceEnumType), "Enum type expected"); 285Debug.Assert(Helper.IsEnumType(cspaceEnumType), "Enum type expected"); 387foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(m => Helper.IsComplexType(m.TypeUsage.EdmType))) 515if (Helper.IsCollectionType(cspaceProperty.TypeUsage.EdmType)) 563foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(p => Helper.IsPrimitiveType(p.TypeUsage.EdmType))) 603foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(p => Helper.IsEnumType(p.TypeUsage.EdmType))) 747Debug.Assert(Helper.IsScalarType(propertyType), "Property has to be primitive or enum."); 751bool isKeyMember = Helper.IsEntityType(cspaceType) && ((EntityType)cspaceType).KeyMemberNames.Contains(clrProperty.Name);
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (5)
82if ((edmType is StructuralType && edmType.BuiltInTypeKind != BuiltInTypeKind.AssociationType) || Helper.IsEnumType(edmType)) 151if (Helper.IsEntityType(type)) 156else if (Helper.IsComplexType(type)) 161else if(Helper.IsEnumType(type)) 168Debug.Assert(Helper.IsAssociationType(type));
System\Data\Metadata\StoreItemCollection.cs (2)
178Helper.DisposeXmlReaders(readers); 342return Helper.EmptyEdmFunctionReadOnlyCollection;
System\Data\Metadata\StoreItemCollection.Loader.cs (1)
97throw EntityUtil.InvalidSchemaEncountered(Helper.CombineErrorMessage(_errors));
System\Data\Metadata\TargetPerspective.cs (1)
55usage = Helper.GetModelTypeUsage(usage);
System\Data\Metadata\TypeHelpers.cs (15)
41else if (TypeSemantics.IsStructuralType(typeUsage) && !Helper.IsComplexType(typeUsage.EdmType) && !Helper.IsEntityType(typeUsage.EdmType)) 131if (Helper.IsEntityType(typeUsage.EdmType) || 132Helper.IsPrimitiveType(typeUsage.EdmType) || 133Helper.IsEnumType(typeUsage.EdmType) || 134Helper.IsRefType(typeUsage.EdmType) ) 214if (Helper.IsPrimitiveType(fromType.EdmType)) 252if (type.Facets.TryGetValue(facetName, false, out byteFacet) && byteFacet.Value != null && !Helper.IsUnboundedFacetValue(byteFacet)) 265if (type.Facets.TryGetValue(facetName, false, out intFacet) && intFacet.Value != null && !Helper.IsUnboundedFacetValue(intFacet) && !Helper.IsVariableFacetValue(intFacet)) 301return Helper.GetFacet(((PrimitiveType)type.EdmType).FacetDescriptions, facetName).IsConstant; 420resultCols.Add(new KeyValuePair<string, TypeUsage>(keyProperty.Name, Helper.GetModelTypeUsage(keyProperty))); 462return TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(enumTypeUsage.EdmType), enumTypeUsage.Facets); 474return TypeUsage.Create(Helper.GetSpatialNormalizedPrimitiveType(spatialTypeUsage.EdmType), spatialTypeUsage.Facets); 624Helper.IsEntityType(refType.ElementType))
System\Data\Metadata\TypeSemantics.cs (66)
111if (Helper.IsPrimitiveType(subType.EdmType) && Helper.IsPrimitiveType(superType.EdmType)) 146if (Helper.IsPrimitiveType(fromType.EdmType) && Helper.IsPrimitiveType(toType.EdmType)) 151else if (Helper.IsCollectionType(fromType.EdmType) && Helper.IsCollectionType(toType.EdmType)) 156else if (Helper.IsEntityTypeBase(fromType.EdmType) && Helper.IsEntityTypeBase(toType.EdmType)) 160else if (Helper.IsRefType(fromType.EdmType) && Helper.IsRefType(toType.EdmType)) 165else if (Helper.IsRowType(fromType.EdmType) && Helper.IsRowType(toType.EdmType)) 179Func<TypeUsage, bool> isLeaf = t => !Helper.IsTransientType(t.EdmType); 184if (Helper.IsCollectionType(t.EdmType) || Helper.IsRefType(t.EdmType)) 188else if (Helper.IsRowType(t.EdmType)) 221(Helper.IsPrimitiveType(fromType.EdmType) && Helper.IsPrimitiveType(toType.EdmType)) || 222(Helper.IsPrimitiveType(fromType.EdmType) && Helper.IsEnumType(toType.EdmType)) || 223(Helper.IsEnumType(fromType.EdmType) && Helper.IsPrimitiveType(toType.EdmType)) || 224(Helper.IsEnumType(fromType.EdmType) && Helper.IsEnumType(toType.EdmType) && fromType.EdmType.Equals(toType.EdmType)); 250if (Helper.IsPrimitiveType(type1.EdmType) && Helper.IsPrimitiveType(type2.EdmType)) 339return Helper.IsCollectionType(type.EdmType); 359return Helper.IsEntityType(type.EdmType); 381return Helper.IsEnumType(type.EdmType); 403return Helper.IsPrimitiveType(type) || Helper.IsEnumType(type); 523return Helper.IsPrimitiveType(type.EdmType); 549return Helper.IsRowType(type.EdmType); 559return Helper.IsRefType(type.EdmType); 569return Helper.IsSpatialType(type); 579return IsPrimitiveType(type) && Helper.IsStrongSpatialTypeKind(((PrimitiveType)type.EdmType).PrimitiveTypeKind); 589return Helper.IsStructuralType(type.EdmType); 599if (Helper.IsRelationshipEndMember(edmMember)) 604if (!Helper.IsEdmProperty(edmMember)) 609if (Helper.IsEntityTypeBase(edmMember.DeclaringType)) 703if (Helper.IsPrimitiveType(type.EdmType)) 727Debug.Assert(Helper.IsPrimitiveType(fromType.EdmType), "fromType must be primitive type"); 729Debug.Assert(Helper.IsPrimitiveType(toType.EdmType), "toType must be primitive type"); 746if (Helper.AreSameSpatialUnionType(subPrimitiveType, superPrimitiveType)) 782Debug.Assert(Helper.IsPrimitiveType(fromType.EdmType), "fromType must be primitive type"); 784Debug.Assert(Helper.IsPrimitiveType(toType.EdmType), "toType must be primitive type"); 807if (Helper.IsPrimitiveType(edmType1) && Helper.IsPrimitiveType(edmType2)) 814else if (Helper.IsCollectionType(edmType1) && Helper.IsCollectionType(edmType2)) 821else if (Helper.IsEntityTypeBase(edmType1) && Helper.IsEntityTypeBase(edmType2)) 828else if (Helper.IsRefType(edmType1) && Helper.IsRefType(edmType2)) 835else if (Helper.IsRowType(edmType1) && Helper.IsRowType(edmType2)) 851Debug.Assert(Helper.IsPrimitiveType(type1.EdmType), "type1 must be primitive type"); 853Debug.Assert(Helper.IsPrimitiveType(type2.EdmType), "type2 must be primitive type"); 999if (Helper.IsPrimitiveType(edmType) || Helper.IsRefType(edmType) || Helper.IsEntityType(edmType) || Helper.IsEnumType(edmType)) 1003else if (Helper.IsRowType(edmType)) 1027return Helper.IsScalarType(edmType); 1117commonTypeClosure[i, i] = Helper.EmptyPrimitiveTypeReadOnlyCollection; 1171return Helper.EmptyPrimitiveTypeReadOnlyCollection;
System\Data\Objects\DataClasses\RelatedEnd.cs (3)
572Debug.Assert(Helper.IsScalarType(parameterEdmType), "Only primitive or enum type expected for parameters"); 574Type parameterClrType = Helper.IsPrimitiveType(parameterEdmType) ? 591queryParam.TypeUsage = Helper.GetModelTypeUsage(parameterMember);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
672if (Helper.IsEntityType(objectMap.EdmType))
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
562PrimitiveTypeKind fromTypeKind = Helper.AsPrimitive(fromType.EdmType).PrimitiveTypeKind; 563PrimitiveTypeKind toTypeKind = Helper.AsPrimitive(toType.EdmType).PrimitiveTypeKind;
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
1871TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(returnType.EdmType), returnType.Facets) : 1914TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(returnType.EdmType), returnType.Facets) :
System\Data\Objects\ELinq\Translator.cs (3)
110if (Helper.IsScalarType(type.EdmType) || 111(isNullValue && Helper.IsEntityType(type.EdmType))) 141if (Helper.IsPrimitiveType(type.EdmType))
System\Data\Objects\EntityEntry.cs (3)
886if (Helper.IsEntityType(metadata.CdmMetadata.EdmType) && (null != (object)_entityKey)) 3291if (Helper.IsComplexType(field.FieldType.TypeUsage.EdmType)) 3312Debug.Assert(Helper.IsScalarType(field.FieldType.TypeUsage.EdmType), "Expected primitive or enum type.");
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (5)
39Debug.Assert(Helper.IsEntityType(recordInfo.RecordType.EdmType) || 40Helper.IsComplexType(recordInfo.RecordType.EdmType), 124Debug.Assert(Helper.IsComplexType(recordInfo.RecordType.EdmType), 144Debug.Assert(!Helper.IsEntityType(mapping.ClrType), "Expecting complex type"); 174this.GetExistingComplex = Helper.IsComplexType(property.TypeUsage.EdmType)
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (2)
405Debug.Assert(Helper.IsEntityType(newType) || Helper.IsComplexType(newType), "OfType must be Entity or Complex type");
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (2)
370!(Helper.IsEntityType(ofType) || Helper.IsComplexType(ofType)))
System\Data\Objects\ObjectStateManager.cs (6)
2996Debug.Assert(Helper.IsEntityType(edmType) || 2997Helper.IsComplexType(edmType), 3019Debug.Assert(Helper.IsEntityType(edmType) || 3020Helper.IsComplexType(edmType), 3046Debug.Assert(Helper.IsEntityType(edmType) || 3047Helper.IsComplexType(edmType),
System\Data\Objects\ObjectStateManagerMetadata.cs (5)
66_isComplexType = (Helper.IsEntityType(_edmProperty.TypeUsage.EdmType) || 67Helper.IsComplexType(_edmProperty.TypeUsage.EdmType)); 153Debug.Assert(Helper.IsEntityType(edmType) || 154Helper.IsComplexType(edmType), 170if (Helper.IsEntityType(edmType))
System\Data\Query\InternalTrees\ColumnMapFactory.cs (7)
87Debug.Assert(Helper.IsEntityType(edmType) || null == entitySet, "The specified non-null EntitySet is incompatible with the EDM type specified."); 95if (Helper.IsRowType(edmType)) 99else if (Helper.IsComplexType(edmType)) 103else if (Helper.IsScalarType(edmType)) 111else if (Helper.IsEntityType(edmType)) 155(Helper.IsScalarType(modelType)) && 278if (!Helper.IsScalarType(member.TypeUsage.EdmType))
System\Data\Query\InternalTrees\Command.cs (1)
932return new PropertyOp(Helper.GetModelTypeUsage(prop), prop);
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (10)
125nullSentinelColumnMap = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(typeInfo.NullSentinelProperty), c_NullSentinelColumnName); 146ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 201ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 222ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 332return CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(prop), c_EntitySetIdColumnName); 410nullSentinelColumnMap = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(typeInfo.NullSentinelProperty), c_NullSentinelColumnName); 418propertyColumnMapList[i] = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 436entitySetIdColumnMap = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(typeInfo.EntitySetIdProperty), c_EntitySetIdColumnName); 447keyColList[i] = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 479return CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(prop), c_TypeIdColumnName);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (6)
1213Helper.IsEntityType(propertyExpression.Instance.ResultType.EdmType)) 1217if (Helper.IsNavigationProperty(instanceExpression.Property) && 1266Helper.IsStructuralType(e.Instance.ResultType.EdmType)) 1271System.Collections.IList propertyOrEndMembers = Helper.GetAllStructuralMembers(e.Instance.ResultType.EdmType); 2077Node newArg = BuildSoftCast(VisitExprAsScalar(e.Arguments[i]), Helper.GetModelTypeUsage(m)); 2243Node newArg = BuildSoftCast(VisitExprAsScalar(value), Helper.GetModelTypeUsage(property));
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (16)
332newNode = CreateNullConstantNode(md.Helper.GetModelTypeUsage(property)); 426typeIdType = md.Helper.GetModelTypeUsage(typeInfo.RootType.DiscriminatorMap.DiscriminatorProperty); 473if (!TypeUtils.IsStructuredType(md.Helper.GetModelTypeUsage(m))) 479TypeInfo nestedTypeInfo = m_typeInfo.GetTypeInfo(md.Helper.GetModelTypeUsage(m)); 1665SetOpVar newVar = m_command.CreateSetOpVar(md.Helper.GetModelTypeUsage(newProperty)); 1780Node arg = BuildSoftCast(inputs.Current, md.Helper.GetModelTypeUsage(p)); 1837var underlyingType = md.Helper.GetUnderlyingEdmTypeForEnumType(op.Type.EdmType); 1845var underlyingType = md.Helper.GetSpatialNormalizedPrimitiveType(op.Type.EdmType); 2079Node caseNode = m_command.CreateNode(m_command.CreateCaseOp(md.Helper.GetModelTypeUsage(property)), caseChildren); 2466inputFieldValues.Insert(0, m_command.CreateNode(m_command.CreateInternalConstantOp(md.Helper.GetModelTypeUsage(outputTypeInfo.EntitySetIdProperty), entitySetId))); 2618ConstantBaseOp discriminatorValueOp = m_command.CreateConstantOp(md.Helper.GetModelTypeUsage(op.DiscriminatorMap.DiscriminatorProperty.TypeUsage), 2657InternalConstantOp entitySetIdOp = m_command.CreateInternalConstantOp(md.Helper.GetModelTypeUsage(entitySetIdProperty), entitySetId); 2665entitySetIdNode = CreateNullConstantNode(md.Helper.GetModelTypeUsage(entitySetIdProperty)); 2776if (TypeUtils.IsStructuredType(md.Helper.GetModelTypeUsage(opField))) 2779md.RowType nestedFlatType = m_typeInfo.GetTypeInfo(md.Helper.GetModelTypeUsage(opField)).FlattenedType; 2888var typeIdType = md.Helper.GetModelTypeUsage(typeInfo.TypeIdProperty);
System\Data\Query\PlanCompiler\PreProcessor.cs (3)
470if (!Helper.IsAssociationType(navigateOp.Relationship)) 1308if (n.Op.OpType != OpType.Property || (!Helper.IsNavigationProperty(((PropertyOp)n.Op).PropertyInfo))) 1335if (Helper.IsNavigationProperty(op.PropertyInfo))
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
779rootType.TypeIdType = md.Helper.GetModelTypeUsage(rootType.DiscriminatorMap.DiscriminatorProperty); 1108result = md.Helper.GetModelTypeUsage(simpleP.Property);
System\Data\Spatial\SpatialHelpers.cs (2)
19Debug.Assert(Helper.IsSpatialType(columnType)); 21if (Helper.IsGeographicType((PrimitiveType)columnType.EdmType))
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (4)
553if (Helper.IsSpatialType(e.ResultType, out spatialTypeKind)) 560if (Helper.IsSpatialType(functionParameter.TypeUsage, out spatialTypeKind)) 769Debug.Assert(functionExpression.Function.Parameters.Count > 0 && Helper.IsSpatialType(functionExpression.Function.Parameters[0].TypeUsage), "Instance property function does not have instance parameter?"); 775Debug.Assert(functionExpression.Function.Parameters.Count > 0 && Helper.IsSpatialType(functionExpression.Function.Parameters[0].TypeUsage), "Instance method function does not have instance parameter?");
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
701if (Helper.IsSpatialType(e.ResultType)) 1842Debug.Assert(Helper.IsPrimitiveType(type.EdmType), "Type must be primitive type"); 3824Debug.Assert(Helper.IsPrimitiveType(storeTypeUsage.EdmType), "Type must be primitive type");
System\Data\SqlClient\SqlProviderManifest.cs (4)
239if ((edmFunction.ReturnParameter != null && Helper.IsSpatialType(edmFunction.ReturnParameter.TypeUsage)) || 240edmFunction.Parameters.Any(p => Helper.IsSpatialType(p.TypeUsage))) 593bool isMaxLength = Helper.IsUnboundedFacetValue(f) || null == f.Value || (int)f.Value > binaryMaxSize; 632bool isMaxLength = Helper.IsUnboundedFacetValue(f) || null == f.Value || (int)f.Value > (isUnicode ? nvarcharMaxSize : varcharMaxSize);