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