51 references to IsCollectionType
System.Data.Entity (51)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (5)
134
if (!TypeSemantics.
IsCollectionType
(argument.ResultType))
144
if (!TypeSemantics.
IsCollectionType
(left.ResultType) || !TypeSemantics.
IsCollectionType
(right.ResultType))
957
if (TypeSemantics.
IsCollectionType
(argument.ResultType))
1554
if (!TypeSemantics.
IsCollectionType
(collectionType))
System\Data\Common\CommandTrees\RelationalExpressions.cs (3)
81
Debug.Assert(TypeSemantics.
IsCollectionType
(argument.ResultType), "DbDistinctExpression argument must have a collection result type");
612
Debug.Assert(TypeSemantics.
IsCollectionType
(resultType), "DbSkipExpression requires a collection result type");
668
Debug.Assert(TypeSemantics.
IsCollectionType
(resultType), "DbSkipExpression requires a collection result type");
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
642
Debug.Assert(args.Count > 0 || TypeSemantics.
IsCollectionType
(type), "DbNewInstanceExpression requires at least one argument when not creating an empty collection");
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
234
if (!TypeSemantics.
IsCollectionType
(parameterType))
System\Data\Common\EntitySql\SemanticAnalyzer.cs (13)
1283
Debug.Assert(TypeSemantics.
IsCollectionType
(functionType.Parameters[0].TypeUsage), "functionType.Parameters[0].Type is CollectionType");
2173
if (!TypeSemantics.
IsCollectionType
(leftExpr.ResultType))
2186
if (!TypeSemantics.
IsCollectionType
(rightExpr.ResultType))
2247
if (!TypeSemantics.
IsCollectionType
(leftExpr.ResultType))
2274
if (!TypeSemantics.
IsCollectionType
(rightExpr.ResultType))
2290
if (TypeSemantics.
IsCollectionType
(leftExpr.ResultType))
2309
if (TypeSemantics.
IsCollectionType
(type))
2691
if (caseExpr.ElseExpr == null && TypeSemantics.
IsCollectionType
(resultType))
3087
if (!TypeSemantics.
IsCollectionType
(converted.ResultType))
3963
Debug.Assert(TypeSemantics.
IsCollectionType
(lambdaVariable.ResultType));
4726
if (!TypeSemantics.
IsCollectionType
(elemExpr.ResultType))
4731
if (!TypeSemantics.
IsCollectionType
(TypeHelpers.GetElementTypeUsage(elemExpr.ResultType)))
5075
if (!TypeSemantics.
IsCollectionType
(exprToFilter.ResultType))
System\Data\Common\EntitySql\SemanticResolver.cs (1)
600
if (TypeSemantics.
IsCollectionType
(valueExpr.ResultType))
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
444
Debug.Assert(TypeSemantics.
IsCollectionType
(queryExpression.ResultType), "Store function must be TVF (collection expected).");
System\Data\Metadata\TypeHelpers.cs (3)
37
if (TypeSemantics.
IsCollectionType
(typeUsage))
569
if (TypeSemantics.
IsCollectionType
(type))
586
if (tvf.ReturnParameter != null && TypeSemantics.
IsCollectionType
(tvf.ReturnParameter.TypeUsage))
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
2047
if (TypeSemantics.
IsCollectionType
(operand.ResultType))
System\Data\Objects\ELinq\Translator.cs (2)
667
Debug.Assert(!TypeSemantics.
IsCollectionType
(argument.ResultType), "Did not expect collection type");
687
Debug.Assert(!TypeSemantics.
IsCollectionType
(argument.ResultType), "Did not expect collection type");
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
742
Debug.Assert(TypeSemantics.
IsCollectionType
(expression.ResultType), "Non-collection input to projection?");
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
221
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(publisher.ResultType), "non-collection type used as RelOpInfo publisher");
System\Data\Query\PlanCompiler\ITreeGenerator.cs (6)
312
if (TypeSemantics.
IsCollectionType
(_iqtCommand.Root.Op.Type))
510
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(resultType), "RelOp with non-Collection result type");
657
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(scalar.Type), "An expression used as a RelOp argument was neither a RelOp or a collection");
1596
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(expression.ResultType), "SetOp DbExpression does not have collection result type?");
2004
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(e.Argument.ResultType), "Non-Collection Type Argument in DbOfTypeExpression");
2037
if (TypeSemantics.
IsCollectionType
(e.ResultType))
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1789
else if (md.TypeSemantics.
IsCollectionType
(oldType))
System\Data\Query\PlanCompiler\Normalizer.cs (3)
117
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(collectionNode.Op.Type), "non-collection usage for Unnest?");
135
PlanCompiler.Assert(TypeSemantics.
IsCollectionType
(op.Type), "non-TVF function?");
226
if (TypeSemantics.
IsCollectionType
(op.Type))
System\Data\Query\PlanCompiler\PlanCompilerUtil.cs (1)
82
TypeSemantics.
IsCollectionType
(n.Child0.Op.Type) &&
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
1174
if (TypeSemantics.
IsCollectionType
(op.Type) || PlanCompilerUtil.IsCollectionAggregateFunction(op, n))
2428
if (TypeSemantics.
IsCollectionType
(typeUsage))
System\Data\Query\PlanCompiler\TypeUtils.cs (1)
138
return md.TypeSemantics.
IsCollectionType
(type);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (4)
522
if (TypeSemantics.
IsCollectionType
(targetTree.Query.ResultType))
1761
if (TypeSemantics.
IsCollectionType
(e.ResultType))
4080
Debug.Assert(TypeSemantics.
IsCollectionType
(e.ResultType));
4112
Debug.Assert(TypeSemantics.
IsCollectionType
(e.ResultType));