15 references to IsScalarType
System.Data.Entity (15)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
191
Debug.Assert(TypeSemantics.
IsScalarType
(e.ResultType), "Non-scalar type constant expressions are not supported.");
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
32
Debug.Assert(TypeSemantics.
IsScalarType
(resultType), "DbConstantExpression must have a primitive or enum value");
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
5035
if (!TypeSemantics.
IsScalarType
(typeToCastTo))
5048
if (!TypeSemantics.
IsScalarType
(exprToCast.ResultType))
System\Data\EntityClient\EntityCommandDefinition.cs (1)
329
Debug.Assert(TypeSemantics.
IsScalarType
(queryParameter.Value), "Non-scalar type used as query parameter type");
System\Data\Metadata\TypeHelpers.cs (3)
162
TypeSemantics.
IsScalarType
(typeUsage);
170
TypeSemantics.
IsScalarType
(typeUsage);
445
Debug.Assert(TypeSemantics.
IsScalarType
(scalarType), "Primitive or enum type expected.");
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
557
if (toType == null || !TypeSemantics.
IsScalarType
(toType) || !TypeSemantics.
IsScalarType
(fromType))
System\Data\Objects\ELinq\Funcletizer.cs (1)
295
(TypeSemantics.
IsScalarType
(typeUsage)))
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
2332
Debug.Assert(TypeSemantics.
IsScalarType
(element.ResultType), "Primitive or enum type expected at this point.");
System\Data\Objects\ObjectParameter.cs (1)
327
(TypeSemantics.
IsScalarType
(type)))
System\Data\Query\PlanCompiler\VarInfo.cs (2)
317
PlanCompiler.Assert(md.TypeSemantics.
IsScalarType
(v.Type), "The current variable should be of primitive or enum type.");
318
PlanCompiler.Assert(md.TypeSemantics.
IsScalarType
(newVar.Type), "The new variable should be of primitive or enum type.");