33 instantiations of PrimitiveType
System.Data.Entity (33)
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (1)
25PrimitiveType _primitiveType = new PrimitiveType();
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
239PrimitiveType primitiveType = new PrimitiveType(clrType, baseType, this);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (31)
125primitiveTypes[(int)PrimitiveTypeKind.Binary] = new PrimitiveType(); 126primitiveTypes[(int)PrimitiveTypeKind.Boolean] = new PrimitiveType(); 127primitiveTypes[(int)PrimitiveTypeKind.Byte] = new PrimitiveType(); 128primitiveTypes[(int)PrimitiveTypeKind.DateTime] = new PrimitiveType(); 129primitiveTypes[(int)PrimitiveTypeKind.Decimal] = new PrimitiveType(); 130primitiveTypes[(int)PrimitiveTypeKind.Double] = new PrimitiveType(); 131primitiveTypes[(int)PrimitiveTypeKind.Single] = new PrimitiveType(); 132primitiveTypes[(int)PrimitiveTypeKind.Guid] = new PrimitiveType(); 133primitiveTypes[(int)PrimitiveTypeKind.Int16] = new PrimitiveType(); 134primitiveTypes[(int)PrimitiveTypeKind.Int32] = new PrimitiveType(); 135primitiveTypes[(int)PrimitiveTypeKind.Int64] = new PrimitiveType(); 136primitiveTypes[(int)PrimitiveTypeKind.SByte] = new PrimitiveType(); 137primitiveTypes[(int)PrimitiveTypeKind.String] = new PrimitiveType(); 138primitiveTypes[(int)PrimitiveTypeKind.Time] = new PrimitiveType(); 139primitiveTypes[(int)PrimitiveTypeKind.DateTimeOffset] = new PrimitiveType(); 140primitiveTypes[(int)PrimitiveTypeKind.Geometry] = new PrimitiveType(); 141primitiveTypes[(int)PrimitiveTypeKind.GeometryPoint] = new PrimitiveType(); 142primitiveTypes[(int)PrimitiveTypeKind.GeometryLineString] = new PrimitiveType(); 143primitiveTypes[(int)PrimitiveTypeKind.GeometryPolygon] = new PrimitiveType(); 144primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiPoint] = new PrimitiveType(); 145primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiLineString] = new PrimitiveType(); 146primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiPolygon] = new PrimitiveType(); 147primitiveTypes[(int)PrimitiveTypeKind.GeometryCollection] = new PrimitiveType(); 148primitiveTypes[(int)PrimitiveTypeKind.Geography] = new PrimitiveType(); 149primitiveTypes[(int)PrimitiveTypeKind.GeographyPoint] = new PrimitiveType(); 150primitiveTypes[(int)PrimitiveTypeKind.GeographyLineString] = new PrimitiveType(); 151primitiveTypes[(int)PrimitiveTypeKind.GeographyPolygon] = new PrimitiveType(); 152primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiPoint] = new PrimitiveType(); 153primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiLineString] = new PrimitiveType(); 154primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiPolygon] = new PrimitiveType(); 155primitiveTypes[(int)PrimitiveTypeKind.GeographyCollection] = new PrimitiveType();
369 references to PrimitiveType
System.Data.Entity (332)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
777PrimitiveType primitiveType; 778if (!TypeHelpers.TryGetEdmType<PrimitiveType>(constantType, out primitiveType))
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
194switch (((PrimitiveType)primitive.EdmType).PrimitiveTypeKind)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (2)
834var primitiveType = (PrimitiveType)expression.ResultType.EdmType;
System\Data\Common\CommandTrees\ValueExpressions.cs (2)
38PrimitiveType primitiveType; 39this._shouldCloneValue = TypeHelpers.TryGetEdmType<PrimitiveType>(resultType, out primitiveType)
System\Data\Common\DbCommandDefinition.cs (2)
94if (TryGetDbTypeFromPrimitiveType((PrimitiveType)type.EdmType, out dbType)) 120internal static bool TryGetDbTypeFromPrimitiveType(PrimitiveType type, out DbType dbType)
System\Data\Common\DbProviderManifest.cs (1)
102public abstract System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetStoreTypes();
System\Data\Common\DbXmlEnabledProviderManifest.cs (17)
26private System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> _primitiveTypes; 27private Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription>> _facetDescriptions = new Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription>>(); 30private Dictionary<string, PrimitiveType> _storeTypeNameToEdmPrimitiveType = new Dictionary<string, PrimitiveType>(); 31private Dictionary<string, PrimitiveType> _storeTypeNameToStorePrimitiveType = new Dictionary<string, PrimitiveType>(); 54protected Dictionary<string, PrimitiveType> StoreTypeNameToEdmPrimitiveType 62protected Dictionary<string, PrimitiveType> StoreTypeNameToStorePrimitiveType 79Debug.Assert(type is PrimitiveType, "DbXmlEnabledProviderManifest.GetFacetDescriptions(): Argument is not a PrimitiveType"); 80return GetReadOnlyCollection(type as PrimitiveType, _facetDescriptions, Helper.EmptyFacetDescriptionEnumerable); 83public override System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetStoreTypes() 110List<PrimitiveType> listOfPrimitiveTypes = new List<PrimitiveType>(); 116PrimitiveType type = typeElement.PrimitiveType; 148private static System.Collections.ObjectModel.ReadOnlyCollection<T> GetReadOnlyCollection<T>(PrimitiveType type, Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<T>> typeDictionary, System.Collections.ObjectModel.ReadOnlyCollection<T> useIfEmpty)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (5)
308PrimitiveType primitiveFromType = fromType.EdmType as PrimitiveType; 309PrimitiveType primitiveToType = toType.EdmType as PrimitiveType; 317IList<PrimitiveType> promotions = EdmProviderManifest.Instance.GetPromotionTypes(primitiveFromType);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (4)
621PrimitiveType primitiveType = null; 2410PrimitiveType primitiveType = parameterizedType.EdmType as PrimitiveType; 2450private static void ConvertTypeFacetValue(PrimitiveType type, AST.Literal value, string facetName, out byte byteValue)
System\Data\Common\Internal\DbTypeMap.cs (1)
164PrimitiveType primitiveType = EdmProviderManifest.Instance.GetPrimitiveType(type);
System\Data\Common\Internal\Materialization\Translator.cs (5)
385result = ((PrimitiveType)edmType).ClrEquivalentType; 1073primitiveColumnType = Helper.IsGeographicType((PrimitiveType)columnType.EdmType) ? PrimitiveTypeKind.Geography : PrimitiveTypeKind.Geometry; 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 (1)
38ospaceType = workspace.GetMappedPrimitiveType(((PrimitiveType)type).PrimitiveTypeKind, DataSpace.OSpace);
System\Data\Common\Utils\CommandHelper.cs (2)
141parameterValue = GetSpatialValueFromProviderValue(parameterValue, (PrimitiveType)parameterType.EdmType, connection); 149private static object GetSpatialValueFromProviderValue(object spatialValue, PrimitiveType parameterType, EntityConnection connection)
System\Data\Common\Utils\MetadataHelper.cs (5)
123spatialNormalizedEdmType = PrimitiveType.GetEdmPrimitiveType(isGeographic ? PrimitiveTypeKind.Geography : PrimitiveTypeKind.Geometry); 212var primitiveType = edmType as PrimitiveType; 690PrimitiveType primitiveType = (PrimitiveType)typeUsage.EdmType;
System\Data\EntityClient\EntityParameter.cs (2)
444PrimitiveType primitiveParameterType; 496PrimitiveType primitiveType = Helper.AsPrimitive(edmType);
System\Data\EntityKey.cs (1)
1103Type entitySetKeyType = ((PrimitiveType)keyMemberEdmType).ClrEquivalentType;
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (2)
135PrimitiveType primitivePropertyType = (PrimitiveType)property.TypeUsage.EdmType;
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (2)
36IList<PrimitiveType> primitiveTypes = providerManifest.GetStoreTypes(); 46foreach (PrimitiveType entry in primitiveTypes)
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (3)
34private PrimitiveType _primitiveType = null; 42internal ScalarType(Schema parentElement, string typeName, PrimitiveType primitiveType) 108public PrimitiveType Type
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (4)
25PrimitiveType _primitiveType = new PrimitiveType(); 221public PrimitiveType PrimitiveType 301PrimitiveType baseType = _primitiveType.BaseType as PrimitiveType;
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (10)
167else if (edmType is PrimitiveType && (edmType as PrimitiveType).PrimitiveTypeKind == PrimitiveTypeKind.String && 373PrimitiveType primitiveType = (PrimitiveType)type; 430PrimitiveType primitiveType = (PrimitiveType)type; 462PrimitiveType primitiveType = (PrimitiveType)type; 493PrimitiveType primitiveType = (PrimitiveType)type;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
235Visit((PrimitiveType)edmType); 275protected virtual void Visit(PrimitiveType primitiveType)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (6)
319clrType = m_objectCollection.GetMappedPrimitiveType(((PrimitiveType)cdmType).PrimitiveTypeKind); 371IEnumerable<PrimitiveType> cspaceTypes = m_edmCollection.GetPrimitiveTypes(); 372foreach (PrimitiveType type in cspaceTypes) 374PrimitiveType ospaceType = m_objectCollection.GetMappedPrimitiveType(type.PrimitiveTypeKind); 528PrimitiveType memberType = Helper.GetSpatialNormalizedPrimitiveType(edmMember.TypeUsage.EdmType); 531if (memberType.PrimitiveTypeKind != ((PrimitiveType)objectMember.TypeUsage.EdmType).PrimitiveTypeKind)
System\Data\Mapping\FunctionImportMapping.cs (1)
630PrimitiveType primitiveType;
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
660protected override void Visit(PrimitiveType primitiveType)
System\Data\Mapping\StorageMappingItemLoader.cs (9)
1777PrimitiveType importType = Helper.AsPrimitive(importParameter.TypeUsage.EdmType); 1786PrimitiveType cspaceTargetType = (PrimitiveType)StoreItemCollection.StoreProviderManifest.GetEdmType(targetParameter.TypeUsage).EdmType; 2394var cPrimitiveType = (PrimitiveType)cTypeColumn.TypeUsage.EdmType; 3259PrimitiveType memberType = ((PrimitiveType)cspaceTypeUsage.EdmType); 4404PrimitiveType rowsAffectedParameterType = (PrimitiveType)rowsAffectedParameter.TypeUsage.EdmType;
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
517resultValue = Cast(childResult.GetSimpleValue(), ((PrimitiveType)nodeType.EdmType).ClrEquivalentType);
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
240private static void GetPropagatorResultForPrimitiveType(PrimitiveType primitiveType, out PropagatorResult result)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
474var columnClrEquivalentType = ((PrimitiveType)propertyType.EdmType).ClrEquivalentType;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
545PrimitiveType underlyingType = Helper.AsPrimitive(member.TypeUsage.EdmType); 555PrimitiveType primitiveType = (PrimitiveType)member.TypeUsage.EdmType;
System\Data\Mapping\ViewGeneration\CellCreator.cs (2)
501PrimitiveType primitive = path.EdmType as PrimitiveType;
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
82PrimitiveTypeKind primitiveTypeKind = ((PrimitiveType)modelType).PrimitiveTypeKind;
System\Data\Metadata\CacheForPrimitiveTypes.cs (12)
38private List<PrimitiveType>[] _primitiveTypeMap = new List<PrimitiveType>[EdmConstants.NumPrimitiveTypes]; 46internal void Add(PrimitiveType type) 49List<PrimitiveType> primitiveTypes = EntityUtil.CheckArgumentOutOfRange(_primitiveTypeMap, (int)type.PrimitiveTypeKind, "primitiveTypeKind"); 54primitiveTypes = new List<PrimitiveType>(); 71internal bool TryGetType(PrimitiveTypeKind primitiveTypeKind, IEnumerable<Facet> facets, out PrimitiveType type) 76List<PrimitiveType> primitiveTypes = EntityUtil.CheckArgumentOutOfRange(_primitiveTypeMap, (int)primitiveTypeKind, "primitiveTypeKind"); 118foreach (PrimitiveType primitiveType in primitiveTypes) 194internal System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetTypes() 196List<PrimitiveType> primitiveTypes = new List<PrimitiveType>(); 197foreach (List<PrimitiveType> types in _primitiveTypeMap)
System\Data\Metadata\ClrPerspective.cs (2)
104PrimitiveType primitiveType = this.MetadataWorkspace.GetMappedPrimitiveType(((PrimitiveType)map.EdmItem).PrimitiveTypeKind, DataSpace.CSpace);
System\Data\Metadata\Converter.cs (8)
37underlyingType: PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Int32), 53underlyingType: PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Int32), 733propertyType = convertedItemCache.ItemCollection.GetItem<PrimitiveType>(somProperty.TypeUsage.EdmType.FullName); 1350private static PrimitiveType GetPrimitiveType(Som.ScalarType scalarType, 1353PrimitiveType returnValue = null; 1356foreach (PrimitiveType primitiveType in providerManifest.GetStoreTypes()) 1373PrimitiveType primitiveType = (PrimitiveType)typeUsage.EdmType;
System\Data\Metadata\Edm\EnumType.cs (4)
37private readonly PrimitiveType _underlyingType; 47_underlyingType = PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Int32); 62internal EnumType(string name, string namespaceName, PrimitiveType underlyingType, bool isFlags, DataSpace dataSpace) 140public PrimitiveType UnderlyingType
System\Data\Metadata\Edm\FacetDescription.cs (2)
279PrimitiveType primitiveType = (PrimitiveType)facetType;
System\Data\Metadata\Edm\ItemCollection.cs (1)
470internal virtual PrimitiveType GetMappedPrimitiveType(PrimitiveTypeKind primitiveTypeKind)
System\Data\Metadata\Edm\PrimitiveType.cs (5)
46PrimitiveType baseType, 67PrimitiveType baseType, 220internal static void Initialize(PrimitiveType primitiveType, 247public static System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetEdmPrimitiveTypes() 253public static PrimitiveType GetEdmPrimitiveType(PrimitiveTypeKind primitiveTypeKind)
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (14)
23private System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> _primitiveTypes; 58internal bool TryGetPrimitiveType(Type clrType, out PrimitiveType primitiveType) 185if (Helper.IsPrimitiveType(type) && ((PrimitiveType)type).DataSpace == DataSpace.OSpace) 188PrimitiveType basePrimitive = (PrimitiveType)type.BaseType; 205PrimitiveType[] primitiveTypes = new PrimitiveType[s_PrimitiveTypeCount]; 224System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> readOnlyTypes = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(primitiveTypes); 227Interlocked.CompareExchange<System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>>(ref _primitiveTypes, readOnlyTypes, null); 235private PrimitiveType CreatePrimitiveType(Type clrType, PrimitiveTypeKind primitiveTypeKind) 238PrimitiveType baseType = MetadataItem.EdmProviderManifest.GetPrimitiveType(primitiveTypeKind); 239PrimitiveType primitiveType = new PrimitiveType(clrType, baseType, this); 245public override System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetStoreTypes()
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (42)
28private Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription>> _facetDescriptions; 29private System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> _primitiveTypes; 32private System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[] _promotionTypes; 90Debug.Assert(type is PrimitiveType, "EdmProviderManifest.GetFacetDescriptions(): Argument is not a PrimitiveType"); 96if (_facetDescriptions.TryGetValue(type as PrimitiveType, out collection)) 108public PrimitiveType GetPrimitiveType(PrimitiveTypeKind primitiveTypeKind) 124PrimitiveType[] primitiveTypes = new PrimitiveType[EdmConstants.NumPrimitiveTypes]; 190foreach (PrimitiveType primitiveType in primitiveTypes) 196System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> readOnlyTypes = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(primitiveTypes); 199Interlocked.CompareExchange<System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>>(ref _primitiveTypes, readOnlyTypes, null); 209private void InitializePrimitiveType(PrimitiveType primitiveType, 220PrimitiveType.Initialize(primitiveType, 241Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription>> facetDescriptions = new Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription>>(); 245PrimitiveType applicableType = _primitiveTypes[(int)PrimitiveTypeKind.String]; 340Interlocked.CompareExchange<Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<FacetDescription>>>(ref _facetDescriptions, 735internal System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetPromotionTypes(PrimitiveType primitiveType) 752System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[] promotionTypes = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[EdmConstants.NumPrimitiveTypes]; 756promotionTypes[i] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { _primitiveTypes[i] }); 762promotionTypes[(int)PrimitiveTypeKind.Byte] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { 775promotionTypes[(int)PrimitiveTypeKind.Int16] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { 787promotionTypes[(int)PrimitiveTypeKind.Int32] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { 798promotionTypes[(int)PrimitiveTypeKind.Int64] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { 808promotionTypes[(int)PrimitiveTypeKind.Single] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { 829Interlocked.CompareExchange<System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[]>(ref _promotionTypes, 834private void InitializeSpatialPromotionGroup(System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[] promotionTypes, PrimitiveTypeKind[] promotableKinds, PrimitiveTypeKind baseKind) 838promotionTypes[(int)promotableKind] = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>(new PrimitiveType[] { 864PrimitiveType primitiveType = _primitiveTypes[primitiveTypeIndex]; 879public override System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetStoreTypes() 897PrimitiveType primitiveType = type.EdmType as PrimitiveType;
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (2)
21internal EdmProviderManifestFunctionBuilder(System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> edmPrimitiveTypes) 28foreach (PrimitiveType edmType in edmPrimitiveTypes)
System\Data\Metadata\Edm\TypeUsage.cs (19)
119public static TypeUsage CreateStringTypeUsage(PrimitiveType primitiveType, 124EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 148public static TypeUsage CreateStringTypeUsage(PrimitiveType primitiveType, 152EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 173public static TypeUsage CreateBinaryTypeUsage(PrimitiveType primitiveType, 177EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 199public static TypeUsage CreateBinaryTypeUsage(PrimitiveType primitiveType, bool isFixedLength) 201EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 220public static TypeUsage CreateDateTimeTypeUsage(PrimitiveType primitiveType, 223EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 241public static TypeUsage CreateDateTimeOffsetTypeUsage(PrimitiveType primitiveType, 244EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 263public static TypeUsage CreateTimeTypeUsage(PrimitiveType primitiveType, 266EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 287public static TypeUsage CreateDecimalTypeUsage(PrimitiveType primitiveType, 291EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 309public static TypeUsage CreateDecimalTypeUsage(PrimitiveType primitiveType) 311EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType"); 437result = ((PrimitiveType)edmType).ProviderManifest.GetEdmType(this);
System\Data\Metadata\EdmItemCollection.cs (5)
372public System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes() 383 public System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes(double edmVersion) 404internal override PrimitiveType GetMappedPrimitiveType(PrimitiveTypeKind primitiveTypeKind) 406PrimitiveType type = null; 414System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> primitiveTypes = providerManifest.GetStoreTypes();
System\Data\Metadata\EdmValidator.cs (2)
189ValidatePrimitiveType((PrimitiveType)item, errors, validatedItems); 456private void ValidatePrimitiveType(PrimitiveType item, List<EdmItemError> errors, HashSet<MetadataItem> validatedItems)
System\Data\Metadata\Helper.cs (18)
363internal static bool IsSpatialType(PrimitiveType type) 370PrimitiveType pt = type as PrimitiveType; 383internal static bool IsGeographicType(PrimitiveType type) 388internal static bool AreSameSpatialUnionType(PrimitiveType firstType, PrimitiveType secondType) 410internal static bool IsGeometricType(PrimitiveType type) 437return (type.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType && IsSpatialType((PrimitiveType)type.EdmType)); 444PrimitiveType primitiveType = (PrimitiveType)type.EdmType; 546internal static PrimitiveType AsPrimitive(EdmType type) 553(PrimitiveType)type; 561internal static PrimitiveType GetUnderlyingEdmTypeForEnumType(EdmType type) 569internal static PrimitiveType GetSpatialNormalizedPrimitiveType(EdmType type) 573PrimitiveType primitiveType = (PrimitiveType)type; 577return PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Geography); 581return PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Geometry);
System\Data\Metadata\MetadataWorkspace.cs (5)
778public ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes(DataSpace dataSpace) 781return collection.GetItems<PrimitiveType>(); 807internal PrimitiveType GetMappedPrimitiveType(PrimitiveTypeKind primitiveTypeKind, DataSpace dataSpace) 1267clrType = collection.GetMappedPrimitiveType(((PrimitiveType)edmSpaceTypeUsage.EdmType).PrimitiveTypeKind); 1365internal PrimitiveType GetModelPrimitiveType(PrimitiveTypeKind primitiveTypeKind)
System\Data\Metadata\ModelPerspective.cs (1)
49typeUsage = this.MetadataWorkspace.GetCanonicalModelTypeUsage(((PrimitiveType)edmType).PrimitiveTypeKind);
System\Data\Metadata\ObjectHelper.cs (3)
37internal static readonly ReadOnlyCollection<PrimitiveType> EmptyPrimitiveTypeReadOnlyCollection = new ReadOnlyCollection<PrimitiveType>(new PrimitiveType[0]);
System\Data\Metadata\ObjectItemCollection.cs (4)
34foreach (PrimitiveType type in ClrProviderManifest.Instance.GetStoreTypes()) 437public IEnumerable<PrimitiveType> GetPrimitiveTypes() 550internal override PrimitiveType GetMappedPrimitiveType(PrimitiveTypeKind modelType) 561PrimitiveType type = null;
System\Data\Metadata\ObjectLayer\ObjectItemAssemblyLoader.cs (1)
156protected bool TryGetPrimitiveType(Type type, out PrimitiveType primitiveType)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
318PrimitiveType underlyingEnumType; 622PrimitiveType primitiveType;
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
254PrimitiveType underlyingEnumType; 568PrimitiveType propertyType;
System\Data\Metadata\Perspective.cs (1)
207internal virtual bool TryGetMappedPrimitiveType(PrimitiveTypeKind primitiveTypeKind, out PrimitiveType primitiveType)
System\Data\Metadata\StoreItemCollection.cs (4)
277public System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes() 287internal override PrimitiveType GetMappedPrimitiveType(PrimitiveTypeKind primitiveTypeKind) 289PrimitiveType type = null; 305foreach (PrimitiveType primitiveType in storeManifest.GetStoreTypes())
System\Data\Metadata\TypeHelpers.cs (10)
50PrimitiveType pType = type as PrimitiveType; 216PrimitiveType fromPrimitiveType = (PrimitiveType)fromType.EdmType; 217IList<PrimitiveType> promotableTypes = EdmProviderManifest.Instance.GetPromotionTypes(fromPrimitiveType); 301return Helper.GetFacet(((PrimitiveType)type.EdmType).FacetDescriptions, facetName).IsConstant; 343typeKind = ((PrimitiveType)type.EdmType).PrimitiveTypeKind; 780PrimitiveType intType = (PrimitiveType)valueType.EdmType; 820PrimitiveType primitiveType = EdmProviderManifest.Instance.GetPrimitiveType(primitiveTypeKind);
System\Data\Metadata\TypeSemantics.cs (30)
37static private objectModel.ReadOnlyCollection<PrimitiveType>[,] _commonTypeClosure; 579return IsPrimitiveType(type) && Helper.IsStrongSpatialTypeKind(((PrimitiveType)type.EdmType).PrimitiveTypeKind); 731if (!IsSubTypeOf((PrimitiveType)fromType.EdmType, (PrimitiveType)toType.EdmType)) 739private static bool IsSubTypeOf(PrimitiveType subPrimitiveType, PrimitiveType superPrimitiveType) 751objectModel.ReadOnlyCollection<PrimitiveType> superTypes = EdmProviderManifest.Instance.GetPromotionTypes(subPrimitiveType); 786if (!IsSubTypeOf((PrimitiveType)fromType.EdmType, (PrimitiveType)toType.EdmType)) 809return TryGetCommonType((PrimitiveType)edmType1, 810(PrimitiveType)edmType2, 869objectModel.ReadOnlyCollection<PrimitiveType> superTypes = GetPrimitiveCommonSuperTypes((PrimitiveType)type1.EdmType, 870(PrimitiveType)type2.EdmType); 880private static bool TryGetCommonType(PrimitiveType primitiveType1, PrimitiveType primitiveType2, out EdmType commonType) 896objectModel.ReadOnlyCollection<PrimitiveType> superTypes = GetPrimitiveCommonSuperTypes(primitiveType1, primitiveType2); 1114objectModel.ReadOnlyCollection<PrimitiveType>[,] commonTypeClosure = new objectModel.ReadOnlyCollection<PrimitiveType>[EdmConstants.NumPrimitiveTypes, EdmConstants.NumPrimitiveTypes]; 1120objectModel.ReadOnlyCollection<PrimitiveType> primitiveTypes = EdmProviderManifest.Instance.GetStoreTypes(); 1149System.Threading.Interlocked.CompareExchange<objectModel.ReadOnlyCollection<PrimitiveType>[,]>(ref _commonTypeClosure, commonTypeClosure, null); 1158private static objectModel.ReadOnlyCollection<PrimitiveType> Intersect(IList<PrimitiveType> types1, IList<PrimitiveType> types2) 1160List<PrimitiveType> commonTypes = new List<PrimitiveType>(); 1174return new objectModel.ReadOnlyCollection<PrimitiveType>(commonTypes); 1183private static objectModel.ReadOnlyCollection<PrimitiveType> GetPrimitiveCommonSuperTypes(PrimitiveType primitiveType1, PrimitiveType primitiveType2)
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
575((PrimitiveType)parameterEdmType).ClrEquivalentType :
System\Data\Objects\ELinq\ExpressionConverter.cs (4)
576toType = TypeUsage.CreateDecimalTypeUsage((PrimitiveType)toType.EdmType, 19, 0); 601if (isPrimitiveType && preserveCastForDateTime && ((PrimitiveType)fromType.EdmType).PrimitiveTypeKind == PrimitiveTypeKind.DateTime) 996return ((PrimitiveType)left.EdmType).ClrEquivalentType.Equals( 997((PrimitiveType)right.EdmType).ClrEquivalentType);
System\Data\Objects\ELinq\Funcletizer.cs (1)
228PrimitiveType primitiveType;
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (4)
1837var underlyingType = md.Helper.GetUnderlyingEdmTypeForEnumType(op.Type.EdmType); 1845var underlyingType = md.Helper.GetSpatialNormalizedPrimitiveType(op.Type.EdmType); 1853private Node RewriteAsCastToUnderlyingType(md.PrimitiveType underlyingType, CastOp op, Node n) 1856if (underlyingType.PrimitiveTypeKind == ((md.PrimitiveType)n.Child0.Op.Type.EdmType).PrimitiveTypeKind)
System\Data\Query\ResultAssembly\BridgeDataReader.cs (2)
192PrimitiveType primitiveType; 193if (TypeHelpers.TryGetEdmType<PrimitiveType>(typeUsage, out primitiveType)) {
System\Data\Spatial\SpatialHelpers.cs (1)
21if (Helper.IsGeographicType((PrimitiveType)columnType.EdmType))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (5)
1027throw EntityUtil.NotSupported(System.Data.Entity.Strings.NoStoreTypeForEdmType(resultType.Identity, ((PrimitiveType)(resultType.EdmType)).PrimitiveTypeKind)); 1843PrimitiveType primitiveType = type.EdmType as PrimitiveType; 3832PrimitiveTypeKind primitiveTypeKind = ((PrimitiveType)storeTypeUsage.EdmType).PrimitiveTypeKind; 4226PrimitiveType mappedType = this._storeItemCollection.GetMappedPrimitiveType(modelType);
System\Data\SqlClient\SqlProviderManifest.cs (11)
46private System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> _primitiveTypes = null; 166public override System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetStoreTypes() 176List<PrimitiveType> primitiveTypes = new List<PrimitiveType>(base.GetStoreTypes()); 179primitiveTypes.RemoveAll(new Predicate<PrimitiveType>( 180delegate(PrimitiveType primitiveType) 196primitiveTypes.RemoveAll(new Predicate<PrimitiveType>( 197delegate(PrimitiveType primitiveType) 350PrimitiveType edmPrimitiveType = base.StoreTypeNameToEdmPrimitiveType[storeTypeName]; 518PrimitiveType primitiveType = edmType.EdmType as PrimitiveType;
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 (25)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
486PrimitiveType primitiveType = (PrimitiveType)type;
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
312var primitiveType = type as PrimitiveType;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (2)
402PrimitiveType.GetEdmPrimitiveType( 826PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.String),
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (3)
719PrimitiveType primitiveType; 1315PrimitiveType primitiveType; 1472PrimitiveType primitiveType;
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (4)
140internal bool TryGetStorePrimitiveType(string typeName, out PrimitiveType primitiveType, out bool excludedForTarget) 143var success = ItemCollection.TryGetItem<PrimitiveType>(StoreNamespace + "." + typeName, false, out primitiveType); 165foreach (PrimitiveType type in ItemCollection.GetItems<PrimitiveType>())
System\Data\Entity\Design\MetadataExtensionMethods.cs (1)
26public static System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes(this EdmItemCollection itemCollection, Version edmVersion)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
656PrimitiveType parameterType = (PrimitiveType)parameter.TypeUsage.EdmType;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (8)
261PrimitiveType primitiveType = Item.TypeUsage.EdmType as PrimitiveType; 464PrimitiveType primitiveType = (PrimitiveType)Item.TypeUsage.EdmType; 573types = new PropertyTypeReferences(TypeReference, (PrimitiveType)propertyType); 584types = new PropertyTypeReferences(TypeReference, (PrimitiveType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage)); 800public PropertyTypeReferences(TypeReference typeReference, PrimitiveType primitiveType) 805public PropertyTypeReferences(TypeReference typeReference, PrimitiveType primitiveType, CollectionKind collectionKind)
System\Data\EntityModel\Emitters\Utils.cs (1)
306modelType = ((PrimitiveType)type).PrimitiveTypeKind;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1223WebUtil.IsPrimitiveType(((PrimitiveType)type).ClrEquivalentType),
System.Data.Services.Design (7)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (6)
278PrimitiveType primitiveType = Item.TypeUsage.EdmType as PrimitiveType; 498types = new PropertyTypeReferences(TypeReference, (PrimitiveType)propertyType); 509types = new PropertyTypeReferences(TypeReference, (PrimitiveType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage)); 723public PropertyTypeReferences(TypeReference typeReference, PrimitiveType primitiveType) 728public PropertyTypeReferences(TypeReference typeReference, PrimitiveType primitiveType, CollectionKind collectionKind)
System\Data\EntityModel\Emitters\Utils.cs (1)
286modelType = ((PrimitiveType)type).PrimitiveTypeKind;
System.Web.DynamicData (3)
DynamicData\ModelProviders\EFColumnProvider.cs (3)
106else if (edmType is PrimitiveType) { 107base.ColumnType = ((PrimitiveType)edmType).ClrEquivalentType; 147return edmType is EntityType || edmType is CollectionType || edmType is PrimitiveType || edmType is EnumType;
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
711((PrimitiveType)memberType).ClrEquivalentType :