6 instantiations of DomainConstraint
System.Data.Entity (6)
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
184
var constraint = new
DomainConstraint
<T_Variable, T_Element>(domainVariable, range.MakeReadOnly());
System\Data\Common\Utils\Boolean\DomainConstraint.cs (1)
130
return new
DomainConstraint
<T_Variable, T_Element>(_variable,
System\Data\Mapping\FunctionImportMapping.cs (2)
352
new
DomainConstraint
<string, ValueCondition>(variables[j], ValueCondition.IsNull));
359
new
DomainConstraint
<string, ValueCondition>(variables[j], conditionValue));
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (1)
131
DomainConstraint<BoolLiteral, Constant> constraint = new
DomainConstraint
<BoolLiteral, Constant>(var,
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (1)
57
DomainConstraint constraint = new
DomainConstraint
(variable, range);
103 references to DomainConstraint
System.Data.Entity (103)
System\Data\Common\Utils\Boolean\ConversionContext.cs (7)
110
internal sealed class DomainConstraintConversionContext<T_Variable, T_Element> : ConversionContext<
DomainConstraint
<T_Variable, T_Element>>
122
internal override Vertex TranslateTermToVertex(TermExpr<
DomainConstraint
<T_Variable, T_Element>> term)
155
internal override IEnumerable<LiteralVertexPair<
DomainConstraint
<T_Variable, T_Element>>> GetSuccessors(Vertex vertex)
184
var
constraint = new DomainConstraint<T_Variable, T_Element>(domainVariable, range.MakeReadOnly());
185
var literal = new Literal<
DomainConstraint
<T_Variable, T_Element>>(
186
new TermExpr<
DomainConstraint
<T_Variable, T_Element>>(constraint), true);
188
yield return new LiteralVertexPair<
DomainConstraint
<T_Variable, T_Element>>(successorVertex, literal);
System\Data\Common\Utils\Boolean\DomainConstraint.cs (3)
128
internal
DomainConstraint
<T_Variable, T_Element> InvertDomainConstraint()
137
DomainConstraint
<T_Variable, T_Element> other = obj as
DomainConstraint
<T_Variable, T_Element>;
System\Data\Common\Utils\Boolean\IdentifierService.cs (11)
34
identifierType.GetGenericTypeDefinition() == typeof(
DomainConstraint
<,>))
93
private class DomainConstraintIdentifierService<T_Variable, T_Element> : IdentifierService<
DomainConstraint
<T_Variable, T_Element>>
95
internal override Literal<
DomainConstraint
<T_Variable, T_Element>> NegateLiteral(Literal<
DomainConstraint
<T_Variable, T_Element>> literal)
99
TermExpr<
DomainConstraint
<T_Variable, T_Element>> term = new TermExpr<
DomainConstraint
<T_Variable, T_Element>>(
101
return new Literal<
DomainConstraint
<T_Variable, T_Element>>(term, literal.IsTermPositive);
104
internal override ConversionContext<
DomainConstraint
<T_Variable, T_Element>> CreateConversionContext()
109
internal override BoolExpr<
DomainConstraint
<T_Variable, T_Element>> LocalSimplify(BoolExpr<
DomainConstraint
<T_Variable, T_Element>> expression)
112
return expression.Accept(Simplifier<
DomainConstraint
<T_Variable, T_Element>>.Instance);
System\Data\Common\Utils\Boolean\NegationPusher.cs (11)
27
internal static BoolExpr<
DomainConstraint
<T_Variable, T_Element>> EliminateNot<T_Variable, T_Element>(BoolExpr<
DomainConstraint
<T_Variable, T_Element>> expression)
85
private class NonNegatedDomainConstraintTreeVisitor<T_Variable, T_Element> : NonNegatedTreeVisitor<
DomainConstraint
<T_Variable, T_Element>>
93
internal override BoolExpr<
DomainConstraint
<T_Variable, T_Element>> VisitNot(NotExpr<
DomainConstraint
<T_Variable, T_Element>> expression)
99
private class NegatedDomainConstraintTreeVisitor<T_Variable, T_Element> : NegatedTreeVisitor<
DomainConstraint
<T_Variable, T_Element>>
107
internal override BoolExpr<
DomainConstraint
<T_Variable, T_Element>> VisitNot(NotExpr<
DomainConstraint
<T_Variable, T_Element>> expression)
112
internal override BoolExpr<
DomainConstraint
<T_Variable, T_Element>> VisitTerm(TermExpr<
DomainConstraint
<T_Variable, T_Element>> expression)
114
return new TermExpr<
DomainConstraint
<T_Variable, T_Element>>(expression.Identifier.InvertDomainConstraint());
System\Data\Mapping\FunctionImportMapping.cs (3)
331
ConversionContext<
DomainConstraint
<string, ValueCondition>> converter,
351
var isNull = new TermExpr<
DomainConstraint
<string, ValueCondition>>(
358
var hasValue = new TermExpr<
DomainConstraint
<string, ValueCondition>>(
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (6)
22
internal class FragmentQueryKB : KnowledgeBase<
DomainConstraint
<BoolLiteral, Constant>>
24
private BoolExpr<
DomainConstraint
<BoolLiteral, Constant>> _kbExpression = TrueExpr<
DomainConstraint
<BoolLiteral, Constant>>.Value;
26
internal override void AddFact(BoolExpr<
DomainConstraint
<BoolLiteral, Constant>> fact)
29
_kbExpression = new AndExpr<
DomainConstraint
<BoolLiteral, Constant>>(_kbExpression, fact);
31
internal BoolExpr<
DomainConstraint
<BoolLiteral, Constant>> KbExpression
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (8)
23
using BoolDomainConstraint =
DomainConstraint
<BoolLiteral, Constant>;
99
new AndExpr<
BoolDomainConstraint
>(_kb.KbExpression, condition.Tree));
100
var context = IdentifierService<
BoolDomainConstraint
>.Instance.CreateConversionContext();
101
var converter = new Converter<
BoolDomainConstraint
>(conditionUnderKB.Tree, context);
131
DomainConstraint
<BoolLiteral, Constant> constraint = new DomainConstraint<BoolLiteral, Constant>(var,
135
new AndExpr<
DomainConstraint
<BoolLiteral, Constant>>(view.Condition.Tree,
136
new NotExpr<
DomainConstraint
<BoolLiteral, Constant>>(new TermExpr<
DomainConstraint
<BoolLiteral, Constant>>(constraint))));
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (9)
386
private class WhereClauseVisitor : Visitor<
DomainConstraint
<BoolLiteral, Constant>, CellTreeNode>
405
internal override CellTreeNode VisitAnd(AndExpr<
DomainConstraint
<BoolLiteral, Constant>> expression)
423
internal override CellTreeNode VisitTrue(TrueExpr<
DomainConstraint
<BoolLiteral, Constant>> expression)
428
internal override CellTreeNode VisitTerm(TermExpr<
DomainConstraint
<BoolLiteral, Constant>> expression)
453
internal override CellTreeNode VisitFalse(FalseExpr<
DomainConstraint
<BoolLiteral, Constant>> expression)
457
internal override CellTreeNode VisitNot(NotExpr<
DomainConstraint
<BoolLiteral, Constant>> expression)
461
internal override CellTreeNode VisitOr(OrExpr<
DomainConstraint
<BoolLiteral, Constant>> expression)
471
private IEnumerable<CellTreeNode> AcceptChildren(IEnumerable<BoolExpr<
DomainConstraint
<BoolLiteral, Constant>>> children)
473
foreach (BoolExpr<
DomainConstraint
<BoolLiteral, Constant>> child in children) { yield return child.Accept(this); }
System\Data\Mapping\ViewGeneration\Structures\BoolExpression.cs (17)
21
using BoolDomainConstraint =
DomainConstraint
<BoolLiteral, Constant>;
22
using DomainAndExpr = AndExpr<
DomainConstraint
<BoolLiteral, Constant>>;
23
using DomainBoolExpr = BoolExpr<
DomainConstraint
<BoolLiteral, Constant>>;
24
using DomainFalseExpr = FalseExpr<
DomainConstraint
<BoolLiteral, Constant>>;
25
using DomainNotExpr = NotExpr<
DomainConstraint
<BoolLiteral, Constant>>;
26
using DomainOrExpr = OrExpr<
DomainConstraint
<BoolLiteral, Constant>>;
27
using DomainTermExpr = TermExpr<
DomainConstraint
<BoolLiteral, Constant>>;
28
using DomainTrueExpr = TrueExpr<
DomainConstraint
<BoolLiteral, Constant>>;
141
private Converter<
BoolDomainConstraint
> m_converter;
198
DomainConstraint
<BoolLiteral, Constant> domainConstraint = term.Identifier;
250
internal IEnumerable<
DomainConstraint
<BoolLiteral, Constant>> VariableConstraints
252
get { return LeafVisitor<
DomainConstraint
<BoolLiteral, Constant>>.GetLeaves(m_tree); }
304
var rewriter = new BooleanExpressionTermRewriter<
BoolDomainConstraint
,
BoolDomainConstraint
>(
397
m_converter = new Converter<
BoolDomainConstraint
>(m_tree,
398
IdentifierService<
BoolDomainConstraint
>.Instance.CreateConversionContext());
407
private class CopyVisitor : BasicVisitor<
BoolDomainConstraint
> { }
System\Data\Mapping\ViewGeneration\Structures\BoolExpressionVisitors.cs (17)
21
using BoolDomainConstraint =
DomainConstraint
<BoolLiteral, Constant>;
22
using DomainAndExpr = AndExpr<
DomainConstraint
<BoolLiteral, Constant>>;
23
using DomainBoolExpr = BoolExpr<
DomainConstraint
<BoolLiteral, Constant>>;
24
using DomainFalseExpr = FalseExpr<
DomainConstraint
<BoolLiteral, Constant>>;
25
using DomainNotExpr = NotExpr<
DomainConstraint
<BoolLiteral, Constant>>;
26
using DomainOrExpr = OrExpr<
DomainConstraint
<BoolLiteral, Constant>>;
27
using DomainTermExpr = TermExpr<
DomainConstraint
<BoolLiteral, Constant>>;
28
using DomainTreeExpr = TreeExpr<
DomainConstraint
<BoolLiteral, Constant>>;
29
using DomainTrueExpr = TrueExpr<
DomainConstraint
<BoolLiteral, Constant>>;
38
private class FixRangeVisitor : BasicVisitor<
BoolDomainConstraint
>
74
private class IsFinalVisitor : Visitor<
BoolDomainConstraint
, bool>
147
private class RemapBoolVisitor : BasicVisitor<
BoolDomainConstraint
>
186
private class RequiredSlotsVisitor : BasicVisitor<
BoolDomainConstraint
>
381
private abstract class AsCqlVisitor<T_Return> : Visitor<
BoolDomainConstraint
, T_Return>
421
private class AsUserStringVisitor : Visitor<
BoolDomainConstraint
, StringBuilder>
542
private class TermVisitor : Visitor<
BoolDomainConstraint
, IEnumerable<DomainTermExpr>>
613
private class CompactStringVisitor : Visitor<
BoolDomainConstraint
, StringBuilder>
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (7)
19
using DomainConstraint = System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>;
21
using DomainBoolExpr = System.Data.Common.Utils.Boolean.BoolExpr<System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;
22
using DomainNotExpr = System.Data.Common.Utils.Boolean.NotExpr <System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;
23
using DomainTermExpr = System.Data.Common.Utils.Boolean.TermExpr<System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;
27
/// Conditions represented by <see cref="BoolLiteral"/>s need to be synchronized with <see cref="
DomainConstraint
"/>s,
57
DomainConstraint
constraint = new DomainConstraint(variable, range);
58
DomainTermExpr result = new DomainTermExpr(EqualityComparer<
DomainConstraint
>.Default, constraint);
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (2)
20
using DomainBoolExpr = System.Data.Common.Utils.Boolean.BoolExpr<System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;
21
using DomainTermExpr = System.Data.Common.Utils.Boolean.TermExpr<System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (1)
21
using DomainBoolExpr = System.Data.Common.Utils.Boolean.BoolExpr<System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (1)
22
using DomainBoolExpr = System.Data.Common.Utils.Boolean.BoolExpr<System.Data.Common.Utils.Boolean.
DomainConstraint
<BoolLiteral, Constant>>;