38 references to IsEnumType
System.Data.Entity (38)
System\Data\EntityClient\EntityCommandDefinition.cs (1)
346
if (Helper.
IsEnumType
(type.EdmType))
System\Data\EntityKey.cs (1)
1118
Debug.Assert(Helper.
IsEnumType
(keyMember.TypeUsage.EdmType), "Enum type expected");
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (5)
452
if (Helper.
IsEnumType
(edmType) ^ Helper.
IsEnumType
(objectType))
470
else if (Helper.
IsEnumType
(edmType))
539
else if (Helper.
IsEnumType
(edmMember.TypeUsage.EdmType))
542
Helper.
IsEnumType
(objectMember.TypeUsage.EdmType),
System\Data\Mapping\StorageMappingItemLoader.cs (3)
1800
var schemaErrorMessage = Helper.
IsEnumType
(importParameter.TypeUsage.EdmType) ?
3278
else if (Helper.
IsEnumType
(edmType))
4448
return Helper.
IsEnumType
(typeUsage.EdmType) ?
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
543
if (Helper.
IsEnumType
(member.TypeUsage.EdmType))
System\Data\Metadata\Helper.cs (3)
360
return
IsEnumType
(edmType) || IsPrimitiveType(edmType);
551
return Helper.
IsEnumType
(type) ?
564
Debug.Assert(
IsEnumType
(type), "This method can be called only for enums.");
System\Data\Metadata\ObjectHelper.cs (1)
213
if (Helper.
IsEnumType
(cspaceType.EdmType))
System\Data\Metadata\ObjectItemCollection.cs (4)
384
else if (Helper.
IsEnumType
(edmType))
532
if (Helper.IsEntityType(objectSpaceType) || Helper.IsComplexType(objectSpaceType) || Helper.
IsEnumType
(objectSpaceType))
578
if (Helper.IsEntityType(cspaceType) || Helper.IsComplexType(cspaceType) || Helper.
IsEnumType
(cspaceType))
605
else if (Helper.
IsEnumType
(edmType))
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
664
if (!TryGetLoadedType(clrProperty.PropertyType, out propertyType) || !Helper.
IsEnumType
(propertyType))
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (8)
51
Debug.Assert(ospaceType is StructuralType || Helper.
IsEnumType
(ospaceType), "Only StructuralType or EnumType expected.");
120
Debug.Assert(cspaceType is StructuralType || Helper.
IsEnumType
(cspaceType), "Structural or enum type expected");
125
if (Helper.
IsEnumType
(cspaceType) ^ type.IsEnum)
133
if(Helper.
IsEnumType
(cspaceType))
221
Debug.Assert(Helper.
IsEnumType
(cspaceEnumType), "Enum type expected");
249
Debug.Assert(Helper.
IsEnumType
(cspaceEnumType), "Enum type expected");
285
Debug.Assert(Helper.
IsEnumType
(cspaceEnumType), "Enum type expected");
603
foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(p => Helper.
IsEnumType
(p.TypeUsage.EdmType)))
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (2)
82
if ((edmType is StructuralType && edmType.BuiltInTypeKind != BuiltInTypeKind.AssociationType) || Helper.
IsEnumType
(edmType))
161
else if(Helper.
IsEnumType
(type))
System\Data\Metadata\TypeHelpers.cs (1)
133
Helper.
IsEnumType
(typeUsage.EdmType) ||
System\Data\Metadata\TypeSemantics.cs (7)
222
(Helper.IsPrimitiveType(fromType.EdmType) && Helper.
IsEnumType
(toType.EdmType)) ||
223
(Helper.
IsEnumType
(fromType.EdmType) && Helper.IsPrimitiveType(toType.EdmType)) ||
224
(Helper.
IsEnumType
(fromType.EdmType) && Helper.
IsEnumType
(toType.EdmType) && fromType.EdmType.Equals(toType.EdmType));
381
return Helper.
IsEnumType
(type.EdmType);
403
return Helper.IsPrimitiveType(type) || Helper.
IsEnumType
(type);
999
if (Helper.IsPrimitiveType(edmType) || Helper.IsRefType(edmType) || Helper.IsEntityType(edmType) || Helper.
IsEnumType
(edmType))