1 write to PrimitiveTypeKind
System.Data.Entity (1)
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (1)
199_primitiveType.PrimitiveTypeKind = (PrimitiveTypeKind)Enum.Parse(typeof(PrimitiveTypeKind), value);
125 references to PrimitiveTypeKind
System.Data.Entity (112)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
785primitiveType.PrimitiveTypeKind != valueKind) 2098|| clrEnumUnderlyingTypeKind != edmEnumType.UnderlyingType.PrimitiveTypeKind)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
194switch (((PrimitiveType)primitive.EdmType).PrimitiveTypeKind)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
40&& primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Binary;
System\Data\Common\DbCommandDefinition.cs (1)
122switch (type.PrimitiveTypeKind)
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
123_storeTypeNameToEdmPrimitiveType.Add(type.Name.ToLowerInvariant(), EdmProviderManifest.Instance.GetPrimitiveType(type.PrimitiveTypeKind));
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
627TypeUsage literalTypeUsage = TypeHelpers.GetLiteralTypeUsage(primitiveType.PrimitiveTypeKind, literal.IsUnicodeString); 2411if (primitiveType == null || primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Decimal)
System\Data\Common\Internal\Materialization\Util.cs (1)
38ospaceType = workspace.GetMappedPrimitiveType(((PrimitiveType)type).PrimitiveTypeKind, DataSpace.OSpace);
System\Data\Common\Utils\MetadataHelper.cs (2)
214return primitiveType != null && primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Boolean; 692return primitiveType.PrimitiveTypeKind;
System\Data\EntityClient\EntityParameter.cs (1)
450typeUsage = EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(primitiveParameterType.PrimitiveTypeKind);
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (4)
139if ((primitivePropertyType.PrimitiveTypeKind == PrimitiveTypeKind.Binary && Schema.SchemaVersion < XmlConstants.EdmVersionForV2) || 144Strings.EntityKeyTypeCurrentlyNotSupported(property.Name, this.ParentElement.FQName, primitivePropertyType.PrimitiveTypeKind)); 152if ((primitivePropertyType.PrimitiveTypeKind == PrimitiveTypeKind.Binary && Schema.SchemaVersion < XmlConstants.StoreVersionForV2) || 158property.TypeUsage.EdmType.Name, property.TypeUsage.EdmType.BaseType.FullName, primitivePropertyType.PrimitiveTypeKind));
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (2)
57switch(_primitiveType.PrimitiveTypeKind) 101return _primitiveType.PrimitiveTypeKind;
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (3)
200_primitiveType.BaseType = MetadataItem.EdmProviderManifest.GetPrimitiveType(_primitiveType.PrimitiveTypeKind); 280if (PrimitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Decimal) 320PrimitiveType.PrimitiveTypeKind,
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (7)
167else if (edmType is PrimitiveType && (edmType as PrimitiveType).PrimitiveTypeKind == PrimitiveTypeKind.String && 374Debug.Assert(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Decimal, "Expected decimal type"); 431Debug.Assert( (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTime) ||(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTimeOffset)||(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Time)) ; 464Debug.Assert(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Binary || 465primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String, "Expected binary or string type");
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (8)
319clrType = m_objectCollection.GetMappedPrimitiveType(((PrimitiveType)cdmType).PrimitiveTypeKind); 374PrimitiveType ospaceType = m_objectCollection.GetMappedPrimitiveType(type.PrimitiveTypeKind); 531if (memberType.PrimitiveTypeKind != ((PrimitiveType)objectMember.TypeUsage.EdmType).PrimitiveTypeKind) 693Debug.Assert(Helper.IsSupportedEnumUnderlyingType(edmEnumType.UnderlyingType.PrimitiveTypeKind)); 697Debug.Assert(Helper.IsSupportedEnumUnderlyingType(objectEnumType.UnderlyingType.PrimitiveTypeKind)); 699if (edmEnumType.UnderlyingType.PrimitiveTypeKind != objectEnumType.UnderlyingType.PrimitiveTypeKind)
System\Data\Mapping\FunctionImportMapping.cs (1)
632!StorageMappingItemLoader.IsTypeSupportedForCondition(primitiveType.PrimitiveTypeKind))
System\Data\Mapping\StorageMappingItemLoader.cs (4)
1798if (cspaceTargetType.PrimitiveTypeKind != importType.PrimitiveTypeKind) 3261PrimitiveTypeKind primitiveTypeKind = memberType.PrimitiveTypeKind; 4409rowsAffectedParameterName, rowsAffectedParameterType.PrimitiveTypeKind),
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
243PrimitiveTypeKind primitiveTypeKind = primitiveType.PrimitiveTypeKind;
System\Data\Mapping\ViewGeneration\CellCreator.cs (1)
502return (primitive != null && primitive.PrimitiveTypeKind == PrimitiveTypeKind.Boolean);
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (1)
139Debug.Assert(Helper.AsPrimitive(type).PrimitiveTypeKind == PrimitiveTypeKind.Boolean, "Only boolean type has discrete domain.");
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
82PrimitiveTypeKind primitiveTypeKind = ((PrimitiveType)modelType).PrimitiveTypeKind;
System\Data\Metadata\CacheForPrimitiveTypes.cs (2)
49List<PrimitiveType> primitiveTypes = EntityUtil.CheckArgumentOutOfRange(_primitiveTypeMap, (int)type.PrimitiveTypeKind, "primitiveTypeKind"); 56_primitiveTypeMap[(int)type.PrimitiveTypeKind] = primitiveTypes;
System\Data\Metadata\ClrPerspective.cs (2)
104PrimitiveType primitiveType = this.MetadataWorkspace.GetMappedPrimitiveType(((PrimitiveType)map.EdmItem).PrimitiveTypeKind, DataSpace.CSpace); 107typeUsage = EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(primitiveType.PrimitiveTypeKind);
System\Data\Metadata\Converter.cs (2)
1374if (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String || 1375primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Binary)
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\FacetDescription.cs (4)
281return primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Byte || 282primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.SByte || 283primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Int16 || 284primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Int32;
System\Data\Metadata\Edm\PrimitiveType.cs (3)
55Initialize(this, baseType.PrimitiveTypeKind, 149switch (PrimitiveTypeKind) 240return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (2)
739return _promotionTypes[(int)primitiveType.PrimitiveTypeKind]; 901return GetCanonicalModelTypeUsage(primitiveType.PrimitiveTypeKind);
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (4)
30Debug.Assert((int)edmType.PrimitiveTypeKind < primitiveTypeUsages.Length && (int)edmType.PrimitiveTypeKind >= 0, "Invalid PrimitiveTypeKind value?"); 31Debug.Assert(primitiveTypeUsages[(int)edmType.PrimitiveTypeKind] == null, "Duplicate PrimitiveTypeKind value in EDM primitive types?"); 33primitiveTypeUsages[(int)edmType.PrimitiveTypeKind] = TypeUsage.Create(edmType);
System\Data\Metadata\Edm\TypeUsage.cs (9)
126if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.String) 154if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.String) 179if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Binary) 203if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Binary) 225if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.DateTime) 246if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.DateTimeOffset) 268if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Time) 293if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Decimal) 313if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Decimal)
System\Data\Metadata\Helper.cs (11)
385return IsGeographicTypeKind(type.PrimitiveTypeKind); 391if (Helper.IsGeographicTypeKind(firstType.PrimitiveTypeKind) && Helper.IsGeographicTypeKind(secondType.PrimitiveTypeKind)) 397if (Helper.IsGeometricTypeKind(firstType.PrimitiveTypeKind) && Helper.IsGeometricTypeKind(secondType.PrimitiveTypeKind)) 412return IsGeometricTypeKind(type.PrimitiveTypeKind); 445if (IsGeographicTypeKind(primitiveType.PrimitiveTypeKind) || IsGeometricTypeKind(primitiveType.PrimitiveTypeKind)) 447spatialType = primitiveType.PrimitiveTypeKind; 575if (IsGeographicType(primitiveType) && primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Geography) 579else if (IsGeometricType(primitiveType) && primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Geometry)
System\Data\Metadata\MetadataWorkspace.cs (1)
1267clrType = collection.GetMappedPrimitiveType(((PrimitiveType)edmSpaceTypeUsage.EdmType).PrimitiveTypeKind);
System\Data\Metadata\ModelPerspective.cs (1)
49typeUsage = this.MetadataWorkspace.GetCanonicalModelTypeUsage(((PrimitiveType)edmType).PrimitiveTypeKind);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
263else if (underlyingEnumType.PrimitiveTypeKind != cspaceEnumType.UnderlyingType.PrimitiveTypeKind)
System\Data\Metadata\TypeHelpers.cs (2)
343typeKind = ((PrimitiveType)type.EdmType).PrimitiveTypeKind; 781switch (intType.PrimitiveTypeKind)
System\Data\Metadata\TypeSemantics.cs (3)
579return IsPrimitiveType(type) && Helper.IsStrongSpatialTypeKind(((PrimitiveType)type.EdmType).PrimitiveTypeKind); 1186return _commonTypeClosure[(int)primitiveType1.PrimitiveTypeKind, (int)primitiveType2.PrimitiveTypeKind];
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
562PrimitiveTypeKind fromTypeKind = Helper.AsPrimitive(fromType.EdmType).PrimitiveTypeKind; 563PrimitiveTypeKind toTypeKind = Helper.AsPrimitive(toType.EdmType).PrimitiveTypeKind; 601if (isPrimitiveType && preserveCastForDateTime && ((PrimitiveType)fromType.EdmType).PrimitiveTypeKind == PrimitiveTypeKind.DateTime)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
1856if (underlyingType.PrimitiveTypeKind == ((md.PrimitiveType)n.Child0.Op.Type.EdmType).PrimitiveTypeKind)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
1027throw EntityUtil.NotSupported(System.Data.Entity.Strings.NoStoreTypeForEdmType(resultType.Identity, ((PrimitiveType)(resultType.EdmType)).PrimitiveTypeKind)); 1844switch(primitiveType.PrimitiveTypeKind) 3832PrimitiveTypeKind primitiveTypeKind = ((PrimitiveType)storeTypeUsage.EdmType).PrimitiveTypeKind;
System\Data\SqlClient\SqlProviderManifest.cs (6)
526switch (primitiveType.PrimitiveTypeKind) 551return GetStorePrimitiveTypeIfPostSql9("geography", edmType.Identity, primitiveType.PrimitiveTypeKind); 561return GetStorePrimitiveTypeIfPostSql9("geometry", edmType.Identity, primitiveType.PrimitiveTypeKind); 701return GetStorePrimitiveTypeIfPostSql9("datetimeoffset", edmType.Identity, primitiveType.PrimitiveTypeKind); 703return GetStorePrimitiveTypeIfPostSql9("time", edmType.Identity, primitiveType.PrimitiveTypeKind); 706throw EntityUtil.NotSupported(Strings.NoStoreTypeForEdmType(edmType.Identity, primitiveType.PrimitiveTypeKind));
System\Data\SqlClient\SqlProviderServices.cs (2)
654PrimitiveTypeKind.String == ((PrimitiveType)type.EdmType).PrimitiveTypeKind, "only valid for string type"); 688PrimitiveTypeKind.Binary == ((PrimitiveType)type.EdmType).PrimitiveTypeKind, "only valid for binary type");
System.Data.Entity.Design (12)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
488if ((primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String || 489primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Binary) &&
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
319return primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.Binary;
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (6)
1340if (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Decimal) 1391else if (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTime || 1392primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Time || 1393primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTimeOffset) 1420else if (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String || 1421primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Binary)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (2)
150(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Geography || primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Geometry))
System\Data\EntityModel\Emitters\Utils.cs (1)
306modelType = ((PrimitiveType)type).PrimitiveTypeKind;
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\Utils.cs (1)
286modelType = ((PrimitiveType)type).PrimitiveTypeKind;