18 references to UnderlyingType
System.Data.Entity (18)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
762
var clrEnumUnderlyingType = edmEnumType.
UnderlyingType
.ClrEquivalentType;
2098
|| clrEnumUnderlyingTypeKind != edmEnumType.
UnderlyingType
.PrimitiveTypeKind)
System\Data\Common\Internal\Materialization\Translator.cs (1)
375
result = DetermineClrType(((EnumType)edmType).
UnderlyingType
);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (8)
692
Debug.Assert(Helper.IsPrimitiveType(edmEnumType.
UnderlyingType
));
693
Debug.Assert(Helper.IsSupportedEnumUnderlyingType(edmEnumType.
UnderlyingType
.PrimitiveTypeKind));
696
Debug.Assert(Helper.IsPrimitiveType(objectEnumType.
UnderlyingType
));
697
Debug.Assert(Helper.IsSupportedEnumUnderlyingType(objectEnumType.
UnderlyingType
.PrimitiveTypeKind));
699
if (edmEnumType.
UnderlyingType
.PrimitiveTypeKind != objectEnumType.
UnderlyingType
.PrimitiveTypeKind)
703
edmEnumType.
UnderlyingType
.Name,
705
objectEnumType.
UnderlyingType
.Name,
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
532
this.Visit(enumType.
UnderlyingType
);
System\Data\Metadata\Edm\EnumType.cs (2)
168
Debug.Assert(Helper.IsEnumMemberValueInRange(
UnderlyingType
.PrimitiveTypeKind, Convert.ToInt64(enumMember.Value, CultureInfo.InvariantCulture)));
169
Debug.Assert(enumMember.Value.GetType() ==
UnderlyingType
.ClrEquivalentType);
System\Data\Metadata\Helper.cs (1)
566
return ((EnumType)type).
UnderlyingType
;
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
263
else if (underlyingEnumType.PrimitiveTypeKind != cspaceEnumType.
UnderlyingType
.PrimitiveTypeKind)
286
Debug.Assert(cspaceEnumType.
UnderlyingType
.ClrEquivalentType == enumType.GetEnumUnderlyingType(), "underlying types should have already been checked");
System\Data\Query\ResultAssembly\BridgeDataReader.cs (1)
207
result = ((EnumType)typeUsage.EdmType).
UnderlyingType
.ClrEquivalentType;