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