1 instantiation of ScalarType
System.Data.Entity (1)
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (1)
48TryAddType(new ScalarType(this, entry.Name, entry), false /*doNotAddErrorForEmptyName*/);
61 references to ScalarType
System.Data.Entity (61)
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (2)
196if (_type is ScalarType) //Create and store type usage for scalar type 198_typeUsageBuilder.ValidateAndSetTypeUsage(_type as ScalarType, false);
System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (1)
453if (property.Type is ScalarType && MetadataHelper.GetConcurrencyMode(property.TypeUsage) != ConcurrencyMode.None)
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (1)
122if (!(property.Type is ScalarType || property.Type is SchemaEnumType) || (property.CollectionKind != CollectionKind.None))
System\Data\EntityModel\SchemaObjectModel\FacetEnabledSchemaElement.cs (2)
110_typeUsageBuilder.ValidateAndSetTypeUsage((ScalarType)_type, !isInProviderManifest); 115internal void ValidateAndSetTypeUsage(ScalarType scalar)
System\Data\EntityModel\SchemaObjectModel\Function.cs (1)
512if (_type != null && (_type is ScalarType == false || _returnTypeCollectionKind != Metadata.Edm.CollectionKind.None))
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (3)
191if (type is ScalarType && returnTypeCollectionKind == CollectionKind.Bag) 197if (type is ScalarType && returnTypeCollectionKind == CollectionKind.None) return true; 272Debug.Assert(returnType == null || returnType is ScalarType || returnType is SchemaEnumType || returnType is Relationship,
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (3)
65internal void ValidateAndSetTypeUsage(ScalarType scalar) 122if (_type is ScalarType) 124_typeUsageBuilder.ValidateAndSetTypeUsage(_type as ScalarType, false);
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (1)
380if (_type != null && (_type is ScalarType == false || (!collectionAllowed && _collectionKind != CollectionKind.None)))
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (1)
78Debug.Assert(!(_type is ScalarType));
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (4)
310if (_type != null && (_type is ScalarType == false || _collectionKind != CollectionKind.None) || 311_typeSubElement != null && _typeSubElement.Type is ScalarType == false) 336if (_type is ScalarType == false || _collectionKind != CollectionKind.None) 346if (_typeSubElement.Type is ScalarType == false)
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (4)
203if (_type is ScalarType) //Create and store type usage for scalar type 205_typeUsageBuilder.ValidateAndSetTypeUsage(_type as ScalarType, false); 245if (_type is ScalarType == false || _isRefType || _collectionKind != CollectionKind.None) 252if (_typeSubElement.Type is ScalarType == false)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (4)
203.Single(t => t is ScalarType && ((ScalarType)t).TypeKind == PrimitiveTypeKind.Int32); 219var enumUnderlyingType = UnderlyingType as ScalarType;
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (3)
141ScalarType scalar = _type as ScalarType; 172if (!(element is SchemaComplexType) && !(element is ScalarType) && !(element is SchemaEnumType))
System\Data\EntityModel\SchemaObjectModel\TypeRefElement.cs (2)
66if (_type is ScalarType) //Create and store type usage for scalar type 68_typeUsageBuilder.ValidateAndSetTypeUsage(_type as ScalarType, false);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (16)
197internal void ValidateAndSetTypeUsage(ScalarType scalar, bool complainOnMissingFacet) 687ScalarType scalar = type as ScalarType; 698private void ValidateScalarMemberDefaultValue(ScalarType scalar) 770private void ValidateBinaryDefaultValue(ScalarType scalar) 781private void ValidateBooleanDefaultValue(ScalarType scalar) 787private void ValidateIntegralDefaultValue(ScalarType scalar, long minValue, long maxValue) 793private void ValidateDateTimeDefaultValue(ScalarType scalar) 798ScalarType.DateTimeFormat.Replace(@"\", ""))); 802private void ValidateTimeDefaultValue(ScalarType scalar) 807ScalarType.TimeFormat.Replace(@"\", ""))); 811private void ValidateDateTimeOffsetDefaultValue(ScalarType scalar) 816ScalarType.DateTimeOffsetFormat.Replace(@"\", ""))); 820private void ValidateDecimalDefaultValue(ScalarType scalar) 830private void ValidateFloatingPointDefaultValue(ScalarType scalar, double minValue, double maxValue) 836private void ValidateGuidDefaultValue(ScalarType scalar)
System\Data\EntityModel\SchemaObjectModel\ValidationHelper.cs (1)
44else if(!(type is ScalarType) && typeUsageBuilder.HasUserDefinedFacets)
System\Data\Metadata\Converter.cs (10)
717Som.ScalarType scalarType = somProperty.Type as Som.ScalarType; 1047Debug.Assert(somEnumType.UnderlyingType is Som.ScalarType, "At this point the underlying type should have already been validated and should be ScalarType"); 1049Som.ScalarType enumUnderlyingType = (Som.ScalarType)somEnumType.UnderlyingType; 1138Som.ScalarType scalarType = type as Som.ScalarType; 1206Som.ScalarType typeElement = type as Som.ScalarType; 1350private static PrimitiveType GetPrimitiveType(Som.ScalarType scalarType,
System\Data\Metadata\ObjectLayer\MetadataAssemblyHelper.cs (2)
19static byte [] EcmaPublicKeyToken = System.Data.EntityModel.SchemaObjectModel.ScalarType.ConvertToByteArray(AssemblyRef.EcmaPublicKey); 20static byte [] MsPublicKeyToken = System.Data.EntityModel.SchemaObjectModel.ScalarType.ConvertToByteArray(AssemblyRef.MicrosoftPublicKey);