2 types derived from BoolLiteral
System.Data.Entity (2)
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (1)
177
internal abstract class TrueFalseLiteral :
BoolLiteral
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (1)
29
internal abstract class MemberRestriction :
BoolLiteral
114 references to BoolLiteral
System.Data.Entity (114)
System\Data\Mapping\ViewGeneration\CqlGeneration\BooleanProjectedSlot.cs (1)
35
BoolLiteral
.EqualityComparer.Equals((CellIdBoolean)expr.AsLiteral, m_originalCell), "Cellid boolean for the slot and cell number disagree");
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>;
113
IEnumerable<DomainVariable<
BoolLiteral
, Constant>> variables = view.Condition.Variables;
114
foreach (DomainVariable<
BoolLiteral
, Constant> var in variables)
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\QueryRewriter.cs (5)
743
Dictionary<
BoolLiteral
,
BoolLiteral
> literalRemap = new Dictionary<
BoolLiteral
,
BoolLiteral
>(
BoolLiteral
.EqualityIdentifierComparer);
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\QueryRewriting\RoleBoolean.cs (2)
91
protected override bool IsEqualTo(
BoolLiteral
right)
106
internal override
BoolLiteral
RemapBool(Dictionary<MemberPath, MemberPath> remap)
System\Data\Mapping\ViewGeneration\Structures\BoolExpression.cs (23)
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>>;
37
internal static BoolExpression CreateLiteral(
BoolLiteral
literal, MemberDomainMap memberDomainMap)
44
internal BoolExpression Create(
BoolLiteral
literal)
168
internal IEnumerable<
BoolLiteral
> Leaves
184
internal
BoolLiteral
AsLiteral
190
BoolLiteral
result = GetBoolLiteral(literal);
196
internal static
BoolLiteral
GetBoolLiteral(DomainTermExpr term)
198
DomainConstraint<
BoolLiteral
, Constant> domainConstraint = term.Identifier;
199
DomainVariable<
BoolLiteral
, Constant> variable = domainConstraint.Variable;
250
internal IEnumerable<DomainConstraint<
BoolLiteral
, Constant>> VariableConstraints
252
get { return LeafVisitor<DomainConstraint<
BoolLiteral
, Constant>>.GetLeaves(m_tree); }
255
internal IEnumerable<DomainVariable<
BoolLiteral
, Constant>> Variables
264
foreach (DomainVariable<
BoolLiteral
, Constant> var in Variables)
302
internal BoolExpression RemapLiterals(Dictionary<
BoolLiteral
,
BoolLiteral
> remap)
308
BoolLiteral
newLiteral;
System\Data\Mapping\ViewGeneration\Structures\BoolExpressionVisitors.cs (21)
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>>;
64
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
97
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
175
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
176
BoolLiteral
newLiteral = literal.RemapBool(m_remap);
211
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
254
protected override StringBuilder BooleanLiteralAsCql(
BoolLiteral
literal, bool skipIsNotNull)
336
protected override DbExpression BooleanLiteralAsCql(
BoolLiteral
literal, bool skipIsNotNull)
403
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
406
protected abstract T_Return BooleanLiteralAsCql(
BoolLiteral
literal, bool skipIsNotNull);
467
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
484
BoolLiteral
literal = BoolExpression.GetBoolLiteral(termExpr);
647
BoolLiteral
literal = BoolExpression.GetBoolLiteral(expression);
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (22)
19
using DomainConstraint = System.Data.Common.Utils.Boolean.DomainConstraint<
BoolLiteral
, Constant>;
20
using DomainVariable = System.Data.Common.Utils.Boolean.DomainVariable<
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,
28
/// which may be modified upon calling <see cref="BoolExpression.ExpensiveSimplify"/>. This is what the method <see cref="
BoolLiteral
.FixRange"/> is used for.
33
internal static readonly IEqualityComparer<
BoolLiteral
> EqualityComparer = new BoolLiteralComparer();
34
internal static readonly IEqualityComparer<
BoolLiteral
> EqualityIdentifierComparer = new IdentifierComparer();
41
internal static DomainTermExpr MakeTermExpression(
BoolLiteral
literal, IEnumerable<Constant> domain, IEnumerable<Constant> range)
51
internal static DomainTermExpr MakeTermExpression(
BoolLiteral
literal, Set<Constant> domain, Set<Constant> range)
74
internal abstract
BoolLiteral
RemapBool(Dictionary<MemberPath, MemberPath> remap);
100
protected virtual bool IsIdentifierEqualTo(
BoolLiteral
right)
105
protected abstract bool IsEqualTo(
BoolLiteral
right);
120
private sealed class BoolLiteralComparer : IEqualityComparer<
BoolLiteral
>
122
public bool Equals(
BoolLiteral
left,
BoolLiteral
right)
139
public int GetHashCode(
BoolLiteral
literal)
150
private sealed class IdentifierComparer : IEqualityComparer<
BoolLiteral
>
152
public bool Equals(
BoolLiteral
left,
BoolLiteral
right)
169
public int GetHashCode(
BoolLiteral
literal)
System\Data\Mapping\ViewGeneration\Structures\CellIdBoolean.cs (2)
90
protected override bool IsEqualTo(
BoolLiteral
right)
105
internal override
BoolLiteral
RemapBool(Dictionary<MemberPath, MemberPath> remap)
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
676
BoolLiteral
literal = atom.AsLiteral;
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (8)
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>>;
130
/// See <see cref="
BoolLiteral
.GetRequiredSlots"/>.
141
/// See <see cref="
BoolLiteral
.IsEqualTo"/>. Member restriction can be incomplete for this operation.
143
protected override bool IsEqualTo(
BoolLiteral
right)
173
/// See <see cref="
BoolLiteral
.IsIdentifierEqualTo"/>. Member restriction can be incomplete for this operation.
175
protected override bool IsIdentifierEqualTo(
BoolLiteral
right)
190
/// See <see cref="
BoolLiteral
.GetIdentifierHash"/>. Member restriction can be incomplete for this operation.
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (3)
21
using DomainBoolExpr = System.Data.Common.Utils.Boolean.BoolExpr<System.Data.Common.Utils.Boolean.DomainConstraint<
BoolLiteral
, Constant>>;
64
BoolLiteral
newLiteral = new ScalarRestriction(RestrictedMemberSlot, new Domain(range, newPossibleValues));
68
internal override
BoolLiteral
RemapBool(Dictionary<MemberPath, MemberPath> remap)
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (3)
22
using DomainBoolExpr = System.Data.Common.Utils.Boolean.BoolExpr<System.Data.Common.Utils.Boolean.DomainConstraint<
BoolLiteral
, Constant>>;
63
BoolLiteral
newLiteral = new TypeRestriction(RestrictedMemberSlot, new Domain(range, possibleValues));
67
internal override
BoolLiteral
RemapBool(Dictionary<MemberPath, MemberPath> remap)