21 references to IsEnumerationType
System.Data.Entity (21)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
33
Debug.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)
381
if (TypeSemantics.
IsEnumerationType
(type.TypeUsage))
System\Data\Common\Internal\Materialization\Translator.cs (1)
2106
if (!IsValueLayer && TypeSemantics.
IsEnumerationType
(columnType))
System\Data\Common\QueryCache\EntityClientCacheKey.cs (1)
133
else if (TypeSemantics.
IsEnumerationType
(type))
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
155
if (TypeSemantics.
IsEnumerationType
(argumentNode.Op.Type))
System\Data\Metadata\TypeHelpers.cs (2)
447
return TypeSemantics.
IsEnumerationType
(scalarType) ?
460
Debug.Assert(TypeSemantics.
IsEnumerationType
(enumTypeUsage), "enumTypeUsage is not an enumerated type");
System\Data\Metadata\TypeSemantics.cs (1)
327
Debug.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)
1870
return TypeSemantics.
IsEnumerationType
(returnType) ?
1913
return TypeSemantics.
IsEnumerationType
(returnType) ?
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (10)
193
foreach (var paramVar in m_command.Vars.OfType<ParameterVar>().Where(v => md.TypeSemantics.
IsEnumerationType
(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)).ToArray())
195
ParameterVar newVar = md.TypeSemantics.
IsEnumerationType
(paramVar.Type)
251
else if (md.TypeSemantics.
IsEnumerationType
(type))
796
else if (md.TypeSemantics.
IsEnumerationType
(varDefOp.Var.Type) || md.TypeSemantics.IsStrongSpatialType(varDefOp.Var.Type))
1382
if (md.TypeSemantics.
IsEnumerationType
(unnestTableColumnVar.Type) || md.TypeSemantics.IsStrongSpatialType(unnestTableColumnVar.Type))
1643
else if (md.TypeSemantics.
IsEnumerationType
(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type))
1833
if (md.TypeSemantics.
IsEnumerationType
(op.Type))
1880
if (md.TypeSemantics.
IsEnumerationType
(op.Type))
1948
if (TypeUtils.IsCollectionType(op.Type) || md.TypeSemantics.
IsEnumerationType
(op.Type) || md.TypeSemantics.IsStrongSpatialType(op.Type))
2866
if(md.TypeSemantics.
IsEnumerationType
(op.Type))
System\Data\Query\PlanCompiler\TypeUtils.cs (1)
148
return md.TypeSemantics.
IsEnumerationType
(type);