54 references to IsPrimitiveType
System.Data.Entity (54)
System\Data\Common\DbCommandDefinition.cs (1)
91
if(Helper.
IsPrimitiveType
(type.EdmType))
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
1385
if (Helper.
IsPrimitiveType
(memberModelTypeUsage.EdmType) &&
System\Data\Common\Internal\Materialization\Util.cs (3)
36
if (Helper.
IsPrimitiveType
(type))
58
if (!Helper.
IsPrimitiveType
(ospaceType) && !Helper.IsEntityType(ospaceType) && !Helper.IsComplexType(ospaceType))
65
if (Helper.
IsPrimitiveType
(ospaceType))
System\Data\EntityKey.cs (1)
1101
if (Helper.
IsPrimitiveType
(keyMemberEdmType))
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
317
else if (Helper.
IsPrimitiveType
(cdmType))
526
if (Helper.
IsPrimitiveType
(edmMember.TypeUsage.EdmType))
692
Debug.Assert(Helper.
IsPrimitiveType
(edmEnumType.UnderlyingType));
696
Debug.Assert(Helper.
IsPrimitiveType
(objectEnumType.UnderlyingType));
System\Data\Mapping\StorageMappingItemLoader.cs (3)
2393
Debug.Assert(Helper.
IsPrimitiveType
(cTypeColumn.TypeUsage.EdmType), "S-space columns are expected to be of a primitive type.");
3239
if (Helper.
IsPrimitiveType
(edmType))
3600
Debug.Assert(Helper.
IsPrimitiveType
(columnMember.TypeUsage.EdmType), "s-space column type must be primitive");
System\Data\Mapping\StorageScalarPropertyMapping.cs (1)
62
Debug.Assert(Helper.
IsPrimitiveType
(columnMember.TypeUsage.EdmType), "StorageScalarPropertyMapping must only map primitive types");
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
438
Debug.Assert(Helper.
IsPrimitiveType
(property.TypeUsage.EdmType), "Properties in SSpace should be primitive.");
System\Data\Metadata\Edm\FacetDescription.cs (1)
277
if (Helper.
IsPrimitiveType
(facetType))
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
185
if (Helper.
IsPrimitiveType
(type) && ((PrimitiveType)type).DataSpace == DataSpace.OSpace)
System\Data\Metadata\Edm\TypeUsage.cs (1)
435
else if (Helper.
IsPrimitiveType
(edmType))
System\Data\Metadata\Helper.cs (2)
360
return IsEnumType(edmType) ||
IsPrimitiveType
(edmType);
572
Debug.Assert(
IsPrimitiveType
(type), "This method can be called only for enums.");
System\Data\Metadata\MetadataWorkspace.cs (2)
1264
if (Helper.
IsPrimitiveType
(edmSpaceTypeUsage.EdmType))
1279
Debug.Assert(!Helper.
IsPrimitiveType
(clrType) ||
System\Data\Metadata\ModelPerspective.cs (1)
47
if (Helper.
IsPrimitiveType
(edmType))
System\Data\Metadata\ObjectHelper.cs (2)
150
Debug.Assert(Helper.
IsPrimitiveType
(columnProperty.TypeUsage.EdmType), "sspace property must contain a primitive type");
211
Debug.Assert(Helper.
IsPrimitiveType
(storeType.EdmType), "storeType property must be a primitive type");
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
563
foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(p => Helper.
IsPrimitiveType
(p.TypeUsage.EdmType)))
System\Data\Metadata\TypeHelpers.cs (2)
132
Helper.
IsPrimitiveType
(typeUsage.EdmType) ||
214
if (Helper.
IsPrimitiveType
(fromType.EdmType))
System\Data\Metadata\TypeSemantics.cs (22)
111
if (Helper.
IsPrimitiveType
(subType.EdmType) && Helper.
IsPrimitiveType
(superType.EdmType))
146
if (Helper.
IsPrimitiveType
(fromType.EdmType) && Helper.
IsPrimitiveType
(toType.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)) ||
250
if (Helper.
IsPrimitiveType
(type1.EdmType) && Helper.
IsPrimitiveType
(type2.EdmType))
403
return Helper.
IsPrimitiveType
(type) || Helper.IsEnumType(type);
523
return Helper.
IsPrimitiveType
(type.EdmType);
703
if (Helper.
IsPrimitiveType
(type.EdmType))
727
Debug.Assert(Helper.
IsPrimitiveType
(fromType.EdmType), "fromType must be primitive type");
729
Debug.Assert(Helper.
IsPrimitiveType
(toType.EdmType), "toType must be primitive type");
782
Debug.Assert(Helper.
IsPrimitiveType
(fromType.EdmType), "fromType must be primitive type");
784
Debug.Assert(Helper.
IsPrimitiveType
(toType.EdmType), "toType must be primitive type");
807
if (Helper.
IsPrimitiveType
(edmType1) && Helper.
IsPrimitiveType
(edmType2))
851
Debug.Assert(Helper.
IsPrimitiveType
(type1.EdmType), "type1 must be primitive type");
853
Debug.Assert(Helper.
IsPrimitiveType
(type2.EdmType), "type2 must be primitive type");
999
if (Helper.
IsPrimitiveType
(edmType) || Helper.IsRefType(edmType) || Helper.IsEntityType(edmType) || Helper.IsEnumType(edmType))
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
574
Type parameterClrType = Helper.
IsPrimitiveType
(parameterEdmType) ?
System\Data\Objects\ELinq\Translator.cs (1)
141
if (Helper.
IsPrimitiveType
(type.EdmType))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
1842
Debug.Assert(Helper.
IsPrimitiveType
(type.EdmType), "Type must be primitive type");
3824
Debug.Assert(Helper.
IsPrimitiveType
(storeTypeUsage.EdmType), "Type must be primitive type");