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