21 references to IsEnumerationType
System.Data.Entity (21)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
33Debug.Assert(!value.GetType().IsEnum || TypeSemantics.IsEnumerationType(resultType), "value is an enum while the result type is not of enum type.");
System\Data\Common\EntitySql\TypeResolver.cs (1)
381if (TypeSemantics.IsEnumerationType(type.TypeUsage))
System\Data\Common\Internal\Materialization\Translator.cs (1)
2106if (!IsValueLayer && TypeSemantics.IsEnumerationType(columnType))
System\Data\Common\QueryCache\EntityClientCacheKey.cs (1)
133else if (TypeSemantics.IsEnumerationType(type))
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
155if (TypeSemantics.IsEnumerationType(argumentNode.Op.Type))
System\Data\Metadata\TypeHelpers.cs (2)
447return TypeSemantics.IsEnumerationType(scalarType) ? 460Debug.Assert(TypeSemantics.IsEnumerationType(enumTypeUsage), "enumTypeUsage is not an enumerated type");
System\Data\Metadata\TypeSemantics.cs (1)
327Debug.Assert(!IsEnumerationType(type), "Implicit cast/Softcast is not allowed for enums so we should never see enum type here.");
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
1870return TypeSemantics.IsEnumerationType(returnType) ? 1913return TypeSemantics.IsEnumerationType(returnType) ?
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (10)
193foreach (var paramVar in m_command.Vars.OfType<ParameterVar>().Where(v => md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)).ToArray()) 195ParameterVar newVar = md.TypeSemantics.IsEnumerationType(paramVar.Type) 251else if (md.TypeSemantics.IsEnumerationType(type)) 796else if (md.TypeSemantics.IsEnumerationType(varDefOp.Var.Type) || md.TypeSemantics.IsStrongSpatialType(varDefOp.Var.Type)) 1382if (md.TypeSemantics.IsEnumerationType(unnestTableColumnVar.Type) || md.TypeSemantics.IsStrongSpatialType(unnestTableColumnVar.Type)) 1643else if (md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)) 1833if (md.TypeSemantics.IsEnumerationType(op.Type)) 1880if (md.TypeSemantics.IsEnumerationType(op.Type)) 1948if (TypeUtils.IsCollectionType(op.Type) || md.TypeSemantics.IsEnumerationType(op.Type) || md.TypeSemantics.IsStrongSpatialType(op.Type)) 2866if(md.TypeSemantics.IsEnumerationType(op.Type))
System\Data\Query\PlanCompiler\TypeUtils.cs (1)
148return md.TypeSemantics.IsEnumerationType(type);