283 references to ExpressionKind
System.Data.Entity (283)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (11)
473switch(expression.ExpressionKind) 564switch(expression.ExpressionKind) 683if (expression.ExpressionKind == DbExpressionKind.IsOfOnly) 724if (expression.ExpressionKind == DbExpressionKind.OfTypeOnly) 908if (DbExpressionKind.InnerJoin == expression.ExpressionKind) 912else if (DbExpressionKind.LeftOuterJoin == expression.ExpressionKind) 918Debug.Assert(expression.ExpressionKind == DbExpressionKind.FullOuterJoin, "DbJoinExpression had ExpressionKind other than InnerJoin, LeftOuterJoin or FullOuterJoin?"); 939if (DbExpressionKind.CrossApply == expression.ExpressionKind) 945Debug.Assert(expression.ExpressionKind == DbExpressionKind.OuterApply, "DbApplyExpression had ExpressionKind other than CrossApply or OuterApply?"); 1036if (DbExpressionKind.All == expression.ExpressionKind) 1042Debug.Assert(expression.ExpressionKind == DbExpressionKind.Any, "DbQuantifierExpression had ExpressionKind other than All or Any?");
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (5)
696if (count.ExpressionKind != DbExpressionKind.Constant && 697count.ExpressionKind != DbExpressionKind.ParameterReference) 1387if (limit.ExpressionKind != DbExpressionKind.Constant && 1388limit.ExpressionKind != DbExpressionKind.ParameterReference) 2056return (expression.ExpressionKind == DbExpressionKind.Constant &&
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
359attrs.Add("DbExpressionKind", Enum.GetName(typeof(DbExpressionKind), expr.ExpressionKind));
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (23)
156VisitExprKind(expr.ExpressionKind); 164VisitExprKind(expr.ExpressionKind); 174VisitExprKind(e.ExpressionKind); 345VisitExprKind(e.ExpressionKind); 356VisitExprKind(e.ExpressionKind); 372VisitExprKind(e.ExpressionKind); 391VisitExprKind(e.ExpressionKind); 457VisitExprKind(e.ExpressionKind); 467VisitExprKind(e.ExpressionKind); 477VisitExprKind(e.ExpressionKind); 493VisitExprKind(e.ExpressionKind); 524VisitExprKind(e.ExpressionKind); 538VisitExprKind(e.ExpressionKind); 567VisitExprKind(e.ExpressionKind); 579VisitExprKind(e.ExpressionKind); 589VisitExprKind(e.ExpressionKind); 599VisitExprKind(e.ExpressionKind); 610VisitExprKind(e.ExpressionKind); 621VisitExprKind(e.ExpressionKind); 630VisitExprKind(e.ExpressionKind); 683VisitExprKind(e.ExpressionKind); 694VisitExprKind(e.ExpressionKind); 703VisitExprKind(e.ExpressionKind);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (9)
273return new TreeNode(Enum.GetName(typeof(DbExpressionKind), expr.ExpressionKind)); 572if (e.Instance.ExpressionKind == DbExpressionKind.VariableReference || 573(e.Instance.ExpressionKind == DbExpressionKind.Property && 0 == inst.Children.Count)) 601return this.VisitInfix(e, e.Left, _opMap[e.ExpressionKind], e.Right); 621if (DbExpressionKind.UnaryMinus == e.ExpressionKind) 623return this.Visit(_opMap[e.ExpressionKind], e.Arguments[0]); 627return this.VisitInfix(e, e.Arguments[0], _opMap[e.ExpressionKind], e.Arguments[1]); 713if (DbExpressionKind.IsOfOnly == e.ExpressionKind) 730TreeNode retInfo = new TreeNode(e.ExpressionKind == DbExpressionKind.OfTypeOnly ? "OfTypeOnly" : "OfType");
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (6)
209return (e => e.ExpressionKind == kindToMatch); 271return (e => { if (e.ExpressionKind != DbExpressionKind.Filter) { return false; } else { DbFilterExpression filterEx = (DbFilterExpression)e; return inputPattern(filterEx.Input.Expression) && predicatePattern(filterEx.Predicate); } }); 279return (e => { if (e.ExpressionKind != DbExpressionKind.Project) { return false; } else { DbProjectExpression projectEx = (DbProjectExpression)e; return inputPattern(projectEx.Input.Expression) && projectionPattern(projectEx.Projection); } }); 287return (e => { if (e.ExpressionKind != DbExpressionKind.Case) { return false; } else { DbCaseExpression caseEx = (DbCaseExpression)e; return whenPattern(caseEx.When) && thenPattern(caseEx.Then) && elsePattern(caseEx.Else); } }); 293internal static Func<DbExpression, bool> MatchNewInstance() { return (e => e.ExpressionKind == DbExpressionKind.NewInstance); } 300return (e => { if (e.ExpressionKind != DbExpressionKind.NewInstance) { return false; } else { DbNewInstanceExpression newInst = (DbNewInstanceExpression)e; return argumentsPattern(newInst.Arguments); } });
System\Data\Common\CommandTrees\Internal\Validator.cs (2)
90if(result.ExpressionKind == DbExpressionKind.VariableReference) 120if (result.ExpressionKind == DbExpressionKind.ParameterReference)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (16)
199if (entityProject.Projection.ExpressionKind == DbExpressionKind.Case) 423.Where(px => px.Instance.ExpressionKind == DbExpressionKind.VariableReference && 451if(columnVal.ExpressionKind != DbExpressionKind.Case) 458casePredicate.Then[0].ExpressionKind != DbExpressionKind.Constant || casePredicate.Else.ExpressionKind != DbExpressionKind.Constant || 539if (expression.Instance.ExpressionKind == DbExpressionKind.VariableReference && 592if (predicate.ExpressionKind != DbExpressionKind.Case) { return false; } 594if (caseExpression.Then.Count != 1 && caseExpression.Then[0].ExpressionKind == DbExpressionKind.Constant) 602if (caseExpression.Else.ExpressionKind != DbExpressionKind.Constant) { return false; } 726if (property.Instance.ExpressionKind == DbExpressionKind.VariableReference && 768exp => (exp.ExpressionKind != DbExpressionKind.Or), 807if (expression.ExpressionKind != DbExpressionKind.Equals) { return false; } 809if (equals.Left.ExpressionKind != DbExpressionKind.Property) { return false; } 814if (property.Instance.ExpressionKind != DbExpressionKind.VariableReference || 822if (expression.ExpressionKind == DbExpressionKind.Constant) 827if (expression.ExpressionKind == DbExpressionKind.Cast &&
System\Data\Common\CommandTrees\OperatorExpressions.cs (3)
374Debug.Assert(DbExpressionKind.IsOf == this.ExpressionKind || DbExpressionKind.IsOfOnly == this.ExpressionKind, string.Format(CultureInfo.InvariantCulture, "Invalid DbExpressionKind used in DbIsOfExpression: {0}", Enum.GetName(typeof(DbExpressionKind), this.ExpressionKind)));
System\Data\Common\EntitySql\SemanticAnalyzer.cs (10)
2983if (expr.ExpressionKind != DbExpressionKind.Constant && 2984expr.ExpressionKind != DbExpressionKind.ParameterReference) 3615converted = converted.ExpressionKind == CommandTrees.DbExpressionKind.Null ? converted : converted.ResultType.Null(); 3952if (lambdaBody.ExpressionKind != DbExpressionKind.Project) 3965if (projectExpression.Projection.ExpressionKind == DbExpressionKind.VariableReference) 3970else if (projectExpression.Projection.ExpressionKind == DbExpressionKind.NewInstance && 3985if (projectionExpression.Arguments[i].ExpressionKind != DbExpressionKind.Property) 4309Debug.Assert(right.ExpressionKind == DbExpressionKind.NewInstance, "right.ExpressionKind == DbExpressionKind.NewInstance"); 4757if (args.Right.ExpressionKind == DbExpressionKind.NewInstance) 4792if (args.Right.ExpressionKind == DbExpressionKind.NewInstance)
System\Data\Mapping\Update\Internal\Propagator.cs (5)
125throw EntityUtil.NotSupported(System.Data.Entity.Strings.Update_UnsupportedJoinType(node.ExpressionKind)); 139if (DbExpressionKind.InnerJoin != node.ExpressionKind && DbExpressionKind.LeftOuterJoin != node.ExpressionKind) 141throw EntityUtil.NotSupported(System.Data.Entity.Strings.Update_UnsupportedJoinType(node.ExpressionKind)); 260throw EntityUtil.NotSupported(System.Data.Entity.Strings.Update_UnsupportedProjection(node.Projection.ExpressionKind));
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (2)
190if (DbExpressionKind.IsOfOnly != predicate.ExpressionKind) 219if (DbExpressionKind.Equals == predicate.ExpressionKind)
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (3)
64Debug.Assert(DbExpressionKind.LeftOuterJoin == node.ExpressionKind || DbExpressionKind.InnerJoin == node.ExpressionKind, "(Update/JoinPropagagtor/JoinEvaluator) " + 67if (DbExpressionKind.InnerJoin == m_joinExpression.ExpressionKind)
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.JoinPredicateVisitor.cs (1)
124if (DbExpressionKind.Equals == node.ExpressionKind)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
417if (valueExpression.ExpressionKind == DbExpressionKind.Null)
System\Data\Mapping\Update\Internal\UpdateExpressionVisitor.cs (1)
43node.ExpressionKind.ToString();
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (7)
79if (queryView.ExpressionKind != DbExpressionKind.Project) { return false; } 82if (project.Projection.ExpressionKind != DbExpressionKind.Case) { return false; } 87if (project.Input.Expression.ExpressionKind != DbExpressionKind.Filter) { return false; } 189if (then.ExpressionKind != DbExpressionKind.NewInstance) 255if (x.ExpressionKind != y.ExpressionKind) { return false; } 256switch (x.ExpressionKind)
System\Data\Mapping\ViewValidator.cs (1)
79ValidateExpressionKind(expression.ExpressionKind);
System\Data\Objects\ELinq\ExpressionConverter.cs (7)
491if (projection.ExpressionKind == DbExpressionKind.VariableReference && 849if (input.ExpressionKind == DbExpressionKind.Project && !TryGetSpan(input, out span)) 1249switch (left.ExpressionKind) 1252switch (right.ExpressionKind) 1262switch (right.ExpressionKind) 1272switch (right.ExpressionKind) 1374if (providerSupportsEscapingLikeArgument && translatedPatternExpression.ExpressionKind == DbExpressionKind.Constant)
System\Data\Objects\ELinq\MethodCallTranslator.cs (21)
443if (arg.ExpressionKind == DbExpressionKind.Constant) 895switch (argument.ExpressionKind) 1193if (argument.ExpressionKind != DbExpressionKind.Constant || 2188bool requireSentinel = !(null == defaultValue || defaultValue.ExpressionKind == DbExpressionKind.Null); 2247if (source.ExpressionKind == DbExpressionKind.NewInstance) 2259IEnumerable<DbExpression> constantArguments = arguments.Where(argument => argument.ExpressionKind == DbExpressionKind.Constant); 2267IEnumerable<DbExpression> otherArguments = arguments.Where(argument => argument.ExpressionKind != DbExpressionKind.Constant); 2611if (cqtExpression.ExpressionKind != DbExpressionKind.CrossApply) 2625if (crossApply.Apply.Expression.ExpressionKind != DbExpressionKind.Project) 2632if (rightProject.Input.Expression.ExpressionKind != DbExpressionKind.LeftOuterJoin) 2638if (rightProject.Projection.ExpressionKind != DbExpressionKind.Property) 2650loj.JoinCondition.ExpressionKind != DbExpressionKind.Constant) 2669if (loj.Left.Expression.ExpressionKind != DbExpressionKind.NewInstance) 2674if (lojLeft.Arguments.Count != 1 || lojLeft.Arguments[0].ExpressionKind != DbExpressionKind.Constant) 2683if (loj.Right.Expression.ExpressionKind != DbExpressionKind.Property) 2922if (cqtExpression.ExpressionKind != DbExpressionKind.Project) 2928if (project.Projection.ExpressionKind != DbExpressionKind.NewInstance || 2939if (projection.Arguments[i].ExpressionKind != DbExpressionKind.Property) 2952if (project.Input.Expression.ExpressionKind != DbExpressionKind.Project) 2958if (innerProject.Projection.ExpressionKind != DbExpressionKind.NewInstance || 3016if (DbExpressionKind.Sort != source.ExpressionKind)
System\Data\Objects\ELinq\OrderByLifter.cs (31)
102if (source.ExpressionKind == DbExpressionKind.Sort) 106if (source.ExpressionKind == DbExpressionKind.Project) 110if (projectInput.ExpressionKind == DbExpressionKind.Sort) 114if (projectInput.ExpressionKind == DbExpressionKind.Skip) 118if (projectInput.ExpressionKind == DbExpressionKind.Limit) 122if (limitInput.ExpressionKind == DbExpressionKind.Sort) 126if (limitInput.ExpressionKind == DbExpressionKind.Skip) 132if (source.ExpressionKind == DbExpressionKind.Skip) 136if (source.ExpressionKind == DbExpressionKind.Limit) 140if (limitInput.ExpressionKind == DbExpressionKind.Sort) 144if (limitInput.ExpressionKind == DbExpressionKind.Skip) 148if (limitInput.ExpressionKind == DbExpressionKind.Project) 152if (projectInput.ExpressionKind == DbExpressionKind.Sort) 158if (projectInput.ExpressionKind == DbExpressionKind.Skip) 240if (left.ExpressionKind == DbExpressionKind.Constant && 241right.ExpressionKind == DbExpressionKind.Constant) 329if (_limit.Limit.ExpressionKind == DbExpressionKind.Constant && 330k.ExpressionKind == DbExpressionKind.Constant) 381if (_limit.Limit.ExpressionKind == DbExpressionKind.Constant && 382k.ExpressionKind == DbExpressionKind.Constant) 452if (_limit.Limit.ExpressionKind == DbExpressionKind.Constant && 453k.ExpressionKind == DbExpressionKind.Constant) 476if (_skip.Count.ExpressionKind == DbExpressionKind.Constant && 477_limit.Limit.ExpressionKind == DbExpressionKind.Constant && 478k.ExpressionKind == DbExpressionKind.Constant) 549if (_limit.Limit.ExpressionKind == DbExpressionKind.Constant && 550k.ExpressionKind == DbExpressionKind.Constant) 623if (_skip.Count.ExpressionKind == DbExpressionKind.Constant && 624k.ExpressionKind == DbExpressionKind.Constant) 672if (_skip.Count.ExpressionKind == DbExpressionKind.Constant && 673k.ExpressionKind == DbExpressionKind.Constant)
System\Data\Objects\ELinq\Translator.cs (1)
332if (DbExpressionKind.Property == instance.ExpressionKind)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (6)
169switch(expression.ExpressionKind) 222if (DbExpressionKind.NewInstance == expression.ExpressionKind) 463if (DbExpressionKind.Project == expression.ExpressionKind) 782switch (expression.ExpressionKind) 834if (DbExpressionKind.Deref == testExpr.ExpressionKind) 839if (DbExpressionKind.VariableReference == testExpr.ExpressionKind)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (41)
275PlanCompiler.Assert(ctree.Query.ExpressionKind == DbExpressionKind.Project, 363switch (expr.ExpressionKind) 530List<Node> arguments = new List<Node>((expr.ExpressionKind == DbExpressionKind.IsNull) ? 3 : 5); 539if (expr.ExpressionKind != DbExpressionKind.IsNull) 549if (expr.ExpressionKind != DbExpressionKind.IsNull) 1212if (propertyExpression.Instance.ExpressionKind == DbExpressionKind.Property && 1265if (e.Instance.ExpressionKind == DbExpressionKind.NewInstance && 1310Op op = _iqtCommand.CreateComparisonOp(s_opMap[e.ExpressionKind]); 1325(e.ExpressionKind == DbExpressionKind.Equals || e.ExpressionKind == DbExpressionKind.NotEquals)) 1474if (e.Argument.ExpressionKind == DbExpressionKind.IsNull) 1478else if (e.Argument.ExpressionKind == DbExpressionKind.Not) 1481if (notExpression.Argument.ExpressionKind == DbExpressionKind.IsNull) 1507Op op = _iqtCommand.CreateArithmeticOp(s_opMap[e.ExpressionKind], e.ResultType); 1591PlanCompiler.Assert(DbExpressionKind.Except == expression.ExpressionKind || 1592DbExpressionKind.Intersect == expression.ExpressionKind || 1593DbExpressionKind.UnionAll == expression.ExpressionKind, 1621switch(expression.ExpressionKind) 1678if (DbExpressionKind.IsOfOnly == e.ExpressionKind) 1734this.isExact = (template.ExpressionKind == DbExpressionKind.IsOfOnly); 1740this.isExact = (template.ExpressionKind == DbExpressionKind.OfTypeOnly); 1838return Merge(other.OfType, (other.ExpressionKind == DbExpressionKind.IsOfOnly)); 1843return Merge(other.OfType, (other.ExpressionKind == DbExpressionKind.OfTypeOnly)); 1875if(filter.Predicate.ExpressionKind != DbExpressionKind.IsOf && 1876filter.Predicate.ExpressionKind != DbExpressionKind.IsOfOnly) 1882return (isOfArgument.ExpressionKind == DbExpressionKind.VariableReference && 1904switch(current.ExpressionKind) 1949if(project.Projection.ExpressionKind == DbExpressionKind.VariableReference && 2283PlanCompiler.Assert(DbExpressionKind.CrossJoin == e.ExpressionKind || 2284DbExpressionKind.InnerJoin == e.ExpressionKind || 2285DbExpressionKind.LeftOuterJoin == e.ExpressionKind || 2286DbExpressionKind.FullOuterJoin == e.ExpressionKind, 2334switch (e.ExpressionKind) 2369if (e.ExpressionKind != DbExpressionKind.CrossJoin) 2416PlanCompiler.Assert(DbExpressionKind.CrossApply == e.ExpressionKind || DbExpressionKind.OuterApply == e.ExpressionKind, "Unrecognized DbExpressionKind specified in DbApplyExpression"); 2422if (DbExpressionKind.CrossApply == e.ExpressionKind) 2960PlanCompiler.Assert(DbExpressionKind.Any == e.ExpressionKind || DbExpressionKind.All == e.ExpressionKind, "Invalid DbExpressionKind in DbQuantifierExpression"); 2979if (DbExpressionKind.All == e.ExpressionKind) 3025if (DbExpressionKind.All == e.ExpressionKind)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (4)
511Debug.Assert(expression.ExpressionKind == DbExpressionKind.Equals, 531Debug.Assert(propertyExpression.ExpressionKind == DbExpressionKind.Property, 538if (value.ExpressionKind != DbExpressionKind.Null) 540Debug.Assert(value.ExpressionKind == DbExpressionKind.Constant,
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (4)
141if (sortClause.Expression.ExpressionKind == DbExpressionKind.Property) 397if (expr1.Instance.ExpressionKind != expr2.Instance.ExpressionKind) 402if (expr1.Instance.ExpressionKind == DbExpressionKind.Property)
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (1)
806if (instanceExpression.ExpressionKind != DbExpressionKind.Function)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (60)
599switch (e.ExpressionKind) 629switch (e.ExpressionKind) 632result = VisitBinaryExpression(" / ", e.ExpressionKind, e.Arguments[0], e.Arguments[1]); 635result = VisitBinaryExpression(" - ", e.ExpressionKind, e.Arguments[0], e.Arguments[1]); 638result = VisitBinaryExpression(" % ", e.ExpressionKind, e.Arguments[0], e.Arguments[1]); 641result = VisitBinaryExpression(" * ", e.ExpressionKind, e.Arguments[0], e.Arguments[1]); 644result = VisitBinaryExpression(" + ", e.ExpressionKind, e.Arguments[0], e.Arguments[1]); 734switch (e.ExpressionKind) 795if (e.ExpressionKind == DbExpressionKind.Like) 824if (expr.ExpressionKind == DbExpressionKind.Function) 869return (argument.ExpressionKind == DbExpressionKind.Property) && 882DbExpressionKind expressionKind = argument.ExpressionKind; 1181if (!IsCompatible(result, e.ExpressionKind)) 1424if (!IsCompatible(innerQuery, e.ExpressionKind)) 1616return VisitJoinExpression(e.Inputs, e.ExpressionKind, "CROSS JOIN", null); 1628switch (e.ExpressionKind) 1653return VisitJoinExpression(inputs, e.ExpressionKind, joinString, e.JoinCondition); 1673if (e.Escape.ExpressionKind != DbExpressionKind.Null) 1698if (!IsCompatible(result, e.ExpressionKind)) 1804if (comparisonExpression.ExpressionKind == DbExpressionKind.Equals) 1886return VisitBinaryExpression(" OR ", e.ExpressionKind, e.Left, e.Right); 1921var realValues = values.Where(v => v.ExpressionKind != DbExpressionKind.IsNull); 1970DbIsNullExpression isNullExpression = values.FirstOrDefault(v => v.ExpressionKind == DbExpressionKind.IsNull) as DbIsNullExpression; 2013switch (value.ExpressionKind) 2052if (x.ExpressionKind != y.ExpressionKind) 2056switch (x.ExpressionKind) 2092switch(obj.ExpressionKind) 2125return (e.ExpressionKind == DbExpressionKind.Property 2126|| e.ExpressionKind == DbExpressionKind.VariableReference 2127|| e.ExpressionKind == DbExpressionKind.ParameterReference); 2162switch(e.ExpressionKind) 2241if (!IsCompatible(result, e.ExpressionKind)) 2399bool negatePredicate = (e.ExpressionKind == DbExpressionKind.All); 2400if (e.ExpressionKind == DbExpressionKind.Any) 2406Debug.Assert(e.ExpressionKind == DbExpressionKind.All); 2465if (!IsCompatible(input, e.ExpressionKind)) 2567if (!IsCompatible(result, e.ExpressionKind)) 2774exp => exp.ExpressionKind != expressionKind, 2806if (left.ExpressionKind == DbExpressionKind.Constant) 2817if (right.ExpressionKind == DbExpressionKind.Constant) 2852WrapNonQueryExtent(result, sqlFragment, inputExpression.ExpressionKind); 2915if (e.Arguments.Count == 1 && e.Arguments[0].ExpressionKind == DbExpressionKind.Element) 2975if (e.Argument.ExpressionKind == DbExpressionKind.ParameterReference) 3055bool needsJoinContext = (input.Expression.ExpressionKind == DbExpressionKind.Scan) 3203WrapNonQueryExtent(result, fromExtentFragment, input.Expression.ExpressionKind); 3897if (e.ExpressionKind == DbExpressionKind.Constant) 3921return (DbExpressionKind.CrossApply == e.ExpressionKind || DbExpressionKind.OuterApply == e.ExpressionKind); 3933return (DbExpressionKind.CrossJoin == e.ExpressionKind || 3934DbExpressionKind.FullOuterJoin == e.ExpressionKind || 3935DbExpressionKind.InnerJoin == e.ExpressionKind || 3936DbExpressionKind.LeftOuterJoin == e.ExpressionKind); 3950switch (e.ExpressionKind) 4083switch (e.ExpressionKind) 4098switch (e.ExpressionKind) 4335if (allowConstants && (expression.ExpressionKind == DbExpressionKind.Constant)) 4341if (expression.ExpressionKind == DbExpressionKind.Cast) 4348if (expression.ExpressionKind == DbExpressionKind.Property) 4354if (expression.ExpressionKind == DbExpressionKind.VariableReference)