19 references to NewInstance
System.Data.Entity (19)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (2)
293
internal static Func<DbExpression, bool> MatchNewInstance() { return (e => e.ExpressionKind == DbExpressionKind.
NewInstance
); }
300
return (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)
371
Patterns.MatchForAll(Patterns.MatchKind(DbExpressionKind.
NewInstance
)),
372
Patterns.MatchKind(DbExpressionKind.
NewInstance
)
621
Patterns.MatchKind(DbExpressionKind.
NewInstance
)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
639
: base(DbExpressionKind.
NewInstance
, type)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (4)
3970
else if (projectExpression.Projection.ExpressionKind == DbExpressionKind.
NewInstance
&&
4309
Debug.Assert(right.ExpressionKind == DbExpressionKind.
NewInstance
, "right.ExpressionKind == DbExpressionKind.NewInstance");
4757
if (args.Right.ExpressionKind == DbExpressionKind.
NewInstance
)
4792
if (args.Right.ExpressionKind == DbExpressionKind.
NewInstance
)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
189
if (then.ExpressionKind != DbExpressionKind.
NewInstance
)
268
case DbExpressionKind.
NewInstance
:
System\Data\Mapping\ViewValidator.cs (1)
106
case DbExpressionKind.
NewInstance
:
System\Data\Objects\ELinq\MethodCallTranslator.cs (4)
2247
if (source.ExpressionKind == DbExpressionKind.
NewInstance
)
2669
if (loj.Left.Expression.ExpressionKind != DbExpressionKind.
NewInstance
)
2928
if (project.Projection.ExpressionKind != DbExpressionKind.
NewInstance
||
2958
if (innerProject.Projection.ExpressionKind != DbExpressionKind.
NewInstance
||
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
222
if (DbExpressionKind.
NewInstance
== expression.ExpressionKind)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1265
if (e.Instance.ExpressionKind == DbExpressionKind.
NewInstance
&&