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