46 references to Condition
System.Data.Entity (46)
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (2)
658
intersection.
Condition
.ExpensiveSimplify();
659
RewritingValidator.EntityConfigurationToUserString(intersection.
Condition
, builder);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQuery.cs (3)
108
return String.Format(CultureInfo.InvariantCulture, "{0}: [{1} where {2}]", Description, b, this.
Condition
);
112
return String.Format(CultureInfo.InvariantCulture, "[{0} where {1}]", b, this.
Condition
);
176
foreach (MemberRestriction oneOf in q.
Condition
.MemberRestrictions)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (11)
54
BoolExpression condition = BoolExpression.CreateOr(q1.
Condition
, q2.
Condition
);
80
BoolExpression condition = BoolExpression.CreateAnd(q1.
Condition
, q2.
Condition
);
87
return FragmentQuery.Create(qA.Attributes, BoolExpression.CreateAndNot(qA.
Condition
, qB.
Condition
));
92
return IsSatisfiable(query.
Condition
);
113
IEnumerable<DomainVariable<BoolLiteral, Constant>> variables = view.
Condition
.Variables;
134
BoolExpression exclusion = view.
Condition
.Create(
135
new AndExpr<DomainConstraint<BoolLiteral, Constant>>(view.
Condition
.Tree,
151
newProjectedAttributes, view.
Condition
);
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (23)
293
query.
Condition
.FixDomainMap(_domainMap);
333
select fragmentQuery.
Condition
;
412
BoolExpression whereClause = rewriting.Query.
Condition
;
536
if (FindRewritingAndUsedViews(memberConditionQuery.Attributes, memberConditionQuery.
Condition
, outputUsedViews, out caseRewriting))
574
RewritingValidator.EntityConfigurationToUserString(memberConditionQuery.
Condition
, builder, _context.ViewTarget == ViewTarget.UpdateView);
623
configurationNeedsDefault.
Condition
.ExpensiveSimplify();
626
RewritingValidator.EntityConfigurationToUserString(configurationNeedsDefault.
Condition
, builder);
640
if (!_domainQuery.
Condition
.IsTrue)
643
if (FindRewritingAndUsedViews(_keyAttributes, _domainQuery.
Condition
, outputUsedViews, out topLevelRewriting))
693
attributes, fragmentQuery.
Condition
);
694
Tile<FragmentQuery> noNullToAvoid = CreateTile(FragmentQuery.Create(_keyAttributes, BoolExpression.CreateNot(fragmentQuery.
Condition
)));
712
Tile<FragmentQuery> toAvoid = CreateTile(FragmentQuery.Create(_keyAttributes, BoolExpression.CreateNot(toFill.Query.
Condition
)));
857
if (!RewriteQueryCached(CreateTile(FragmentQuery.Create(toFillQuery.
Condition
)), toAvoid, relevantViews, out rewriting))
862
toFillQuery = FragmentQuery.Create(toFillQuery.Attributes, BoolExpression.CreateAndNot(toFillQuery.
Condition
, rewriting.Query.
Condition
));
864
!RewriteQueryCached(CreateTile(FragmentQuery.Create(toFillQuery.
Condition
)), toAvoid, relevantViews, out rewriting))
902
attributeConditions[attribute] = FragmentQuery.Create(BoolExpression.CreateAndNot(toFillQuery.
Condition
, remainingCondition.
Condition
));
995
currentAttributeCondition = FragmentQuery.Create(BoolExpression.CreateAndNot(currentAttributeCondition.
Condition
, view.
Condition
));
1212
if (view.
Condition
.IsAlwaysTrue())
1253
from domainConstraint in query.
Condition
.VariableConstraints
1263
return !_context.LeftFragmentQP.IsSatisfiable(FragmentQuery.Create(BoolExpression.CreateNot(query.
Condition
)));
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (6)
96
cQueryTree.RightFragmentQuery.
Condition
.ExpensiveSimplify();
97
sQueryTree.RightFragmentQuery.
Condition
.ExpensiveSimplify();
143
FragmentQuery cMinusS = FragmentQuery.Create(BoolExpression.CreateAnd(cMinusSx.
Condition
, inExtentCondition));
144
FragmentQuery sMinusC = FragmentQuery.Create(BoolExpression.CreateAnd(sMinusCx.
Condition
, inExtentCondition));
152
unsatisfiedConstraint = cMinusS.
Condition
;
157
unsatisfiedConstraint = sMinusC.
Condition
;
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (1)
440
BoolExpression endCondition = pNode.RightFragmentQuery.
Condition
.Create(endRoleBoolean);