19 references to NewInstance
System.Data.Entity (19)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (2)
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\ViewSimplifier.cs (3)
371Patterns.MatchForAll(Patterns.MatchKind(DbExpressionKind.NewInstance)), 372Patterns.MatchKind(DbExpressionKind.NewInstance) 621Patterns.MatchKind(DbExpressionKind.NewInstance)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
639: base(DbExpressionKind.NewInstance, type)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (4)
3970else if (projectExpression.Projection.ExpressionKind == DbExpressionKind.NewInstance && 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\ViewGeneration\DiscriminatorMap.cs (2)
189if (then.ExpressionKind != DbExpressionKind.NewInstance) 268case DbExpressionKind.NewInstance:
System\Data\Mapping\ViewValidator.cs (1)
106case DbExpressionKind.NewInstance:
System\Data\Objects\ELinq\MethodCallTranslator.cs (4)
2247if (source.ExpressionKind == DbExpressionKind.NewInstance) 2669if (loj.Left.Expression.ExpressionKind != DbExpressionKind.NewInstance) 2928if (project.Projection.ExpressionKind != DbExpressionKind.NewInstance || 2958if (innerProject.Projection.ExpressionKind != DbExpressionKind.NewInstance ||
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
222if (DbExpressionKind.NewInstance == expression.ExpressionKind)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1265if (e.Instance.ExpressionKind == DbExpressionKind.NewInstance &&