4 types derived from CqlBlock
System.Data.Entity (4)
System\Data\Mapping\ViewGeneration\CqlGeneration\CaseCqlBlock.cs (1)
23
internal sealed class CaseCqlBlock :
CqlBlock
System\Data\Mapping\ViewGeneration\CqlGeneration\ExtentCqlBlock.cs (1)
23
internal sealed class ExtentCqlBlock :
CqlBlock
System\Data\Mapping\ViewGeneration\CqlGeneration\JoinCqlBlock.cs (1)
23
internal sealed class JoinCqlBlock :
CqlBlock
System\Data\Mapping\ViewGeneration\CqlGeneration\UnionCqlBlock.cs (1)
23
internal sealed class UnionCqlBlock :
CqlBlock
82 references to CqlBlock
System.Data.Entity (82)
System\Data\Mapping\ViewGeneration\CqlGeneration\AliasedSlot.cs (4)
30
internal QualifiedSlot(
CqlBlock
block, ProjectedSlot slot)
39
private readonly
CqlBlock
m_block;
47
/// and returns a new deeply qualified slot (as opposed to <see cref="
CqlBlock
.QualifySlotWithBlockAlias"/>).
49
internal override ProjectedSlot DeepQualify(
CqlBlock
block)
System\Data\Mapping\ViewGeneration\CqlGeneration\CaseCqlBlock.cs (6)
27
/// Creates a <see cref="
CqlBlock
"/> containing the case statememt for the <paramref name="caseSlot"/> and projecting other slots as is from its child (input). CqlBlock with SELECT (slots),
30
internal CaseCqlBlock(SlotInfo[] slots, int caseSlot,
CqlBlock
child, BoolExpression whereClause, CqlIdentifiers identifiers, int blockAliasNum)
31
: base(slots, new List<
CqlBlock
>(new
CqlBlock
[] { child }), whereClause, identifiers, blockAliasNum)
55
CqlBlock
childBlock = Children[0];
82
CqlBlock
childBlock = this.Children[0];
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (9)
30
/// Initializes a <see cref="
CqlBlock
"/> with the SELECT (<paramref name="slotInfos"/>), FROM (<paramref name="children"/>),
33
protected CqlBlock(SlotInfo[] slotInfos, List<
CqlBlock
> children, BoolExpression whereClause, CqlIdentifiers identifiers, int blockAliasNum)
36
m_children = new ReadOnlyCollection<
CqlBlock
>(children);
49
private readonly ReadOnlyCollection<
CqlBlock
> m_children;
77
protected ReadOnlyCollection<
CqlBlock
> Children
204
/// Initializes context positioning in the join tree that owns the <see cref="
CqlBlock
"/>.
214
/// Searches the input <paramref name="row"/> for the property that represents the current <see cref="
CqlBlock
"/>.
238
/// The class represents a position of a <see cref="
CqlBlock
"/> in a join tree.
255
/// Example of <see cref="JoinTreeContext"/>s for the <see cref="
CqlBlock
"/>s:
System\Data\Mapping\ViewGeneration\CqlGeneration\ExtentCqlBlock.cs (4)
21
/// A class that represents leaf <see cref="
CqlBlock
"/>s in the <see cref="
CqlBlock
"/> tree.
48
private static readonly List<
CqlBlock
> EmptyChildren = new List<
CqlBlock
>();
System\Data\Mapping\ViewGeneration\CqlGeneration\JoinCqlBlock.cs (4)
32
List<
CqlBlock
> children,
66
foreach (
CqlBlock
child in Children)
97
CqlBlock
leftmostBlock = this.Children[0];
103
CqlBlock
rightBlock = this.Children[i];
System\Data\Mapping\ViewGeneration\CqlGeneration\SlotInfo.cs (5)
20
/// A class that keeps track of slot information in a <see cref="
CqlBlock
"/>.
26
/// Creates a <see cref="SlotInfo"/> for a <see cref="
CqlBlock
"/> X with information about whether this slot is needed by X's parent
35
/// Creates a <see cref="SlotInfo"/> for a <see cref="
CqlBlock
"/> X with information about whether this slot is needed by X's parent
82
/// Returns true iff this slot is required by the <see cref="
CqlBlock
"/>'s parent.
91
/// Returns true iff this slot is projected by this <see cref="
CqlBlock
"/>.
System\Data\Mapping\ViewGeneration\CqlGeneration\UnionCqlBlock.cs (3)
21
/// Represents Union nodes in the <see cref="
CqlBlock
"/> tree.
29
internal UnionCqlBlock(SlotInfo[] slotInfos, List<
CqlBlock
> children, CqlIdentifiers identifiers, int blockAliasNum)
41
foreach (
CqlBlock
child in Children)
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (13)
95
CqlBlock
blockTree = GenerateCqlBlockTree();
110
CqlBlock
blockTree = GenerateCqlBlockTree();
119
/// Generates a <see cref="
CqlBlock
"/> tree that is capable of generating the actual Cql strings.
121
private
CqlBlock
GenerateCqlBlockTree()
134
CqlBlock
viewBlock = m_view.ToCqlBlock(requiredSlots, m_identifiers, ref m_currentBlockNum, ref withRelationships);
146
CqlBlock
finalViewBlock = ConstructCaseBlocks(viewBlock, withRelationships);
190
private
CqlBlock
ConstructCaseBlocks(
CqlBlock
viewBlock, IEnumerable<WithRelationship> withRelationships)
199
CqlBlock
result = ConstructCaseBlocks(viewBlock, 0, topSlots, withRelationships);
207
private
CqlBlock
ConstructCaseBlocks(
CqlBlock
viewBlock, int startSlotNum, bool[] parentRequiredSlots, IEnumerable<WithRelationship> withRelationships)
245
CqlBlock
childBlock = ConstructCaseBlocks(viewBlock, foundSlot + 1, thisRequiredSlots, null);
272
CqlBlock
childBlock,
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (2)
80
internal CaseStatement DeepQualify(
CqlBlock
block)
438
internal WhenThen ReplaceWithQualifiedSlot(
CqlBlock
block)
System\Data\Mapping\ViewGeneration\Structures\CaseStatementProjectedSlot.cs (2)
46
/// and returns a new deeply qualified slot (as opposed to <see cref="
CqlBlock
.QualifySlotWithBlockAlias"/>).
48
internal override ProjectedSlot DeepQualify(
CqlBlock
block)
System\Data\Mapping\ViewGeneration\Structures\CellTreeNode.cs (2)
91
internal abstract
CqlBlock
ToCqlBlock(bool[] requiredSlots, CqlIdentifiers identifiers, ref int blockAliasNum,
223
CqlBlock
block = ToCqlBlock(requiredSlots, identifiers, ref blockAliasNum, ref withRelationships);
System\Data\Mapping\ViewGeneration\Structures\ConstantProjectedSlot.cs (1)
57
internal override ProjectedSlot DeepQualify(
CqlBlock
block)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
126
internal override
CqlBlock
ToCqlBlock(bool[] requiredSlots, CqlIdentifiers identifiers, ref int blockAliasNum, ref List<WithRelationship> withRelationships)
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (22)
187
internal override
CqlBlock
ToCqlBlock(bool[] requiredSlots, CqlIdentifiers identifiers, ref int blockAliasNum,
191
CqlBlock
result;
221
private
CqlBlock
UnionToCqlBlock(bool[] requiredSlots, CqlIdentifiers identifiers, ref int blockAliasNum, ref List<WithRelationship> withRelationships)
225
List<
CqlBlock
> children = new List<
CqlBlock
>();
226
List<Tuple<
CqlBlock
, SlotInfo>> additionalChildSlots = new List<Tuple<
CqlBlock
, SlotInfo>>();
234
CqlBlock
childBlock = child.ToCqlBlock(childProjectedSlots, identifiers, ref blockAliasNum, ref withRelationships);
273
foreach (
CqlBlock
childBlock in children)
303
CqlBlock
firstChild = children[0];
319
CqlBlock
block = new UnionCqlBlock(slotInfos, children, identifiers, ++blockAliasNum);
336
private
CqlBlock
JoinToCqlBlock(bool[] requiredSlots, CqlIdentifiers identifiers, ref int blockAliasNum, ref List<WithRelationship> withRelationships)
344
List<
CqlBlock
> children = new List<
CqlBlock
>();
354
CqlBlock
childBlock = child.ToCqlBlock(childProjectedSlots, identifiers, ref blockAliasNum, ref withRelationships);
385
CqlBlock
child = children[i];
412
CqlBlock
result = new JoinCqlBlock(OpType, slotInfos, children, onClauses, identifiers, ++blockAliasNum);
421
List<
CqlBlock
> children, int slotNum, CqlIdentifiers identifiers)
436
CqlBlock
child = children[childNum];
525
private static int GetInnerJoinChildForSlot(List<
CqlBlock
> children, int slotNum)
532
CqlBlock
child = children[i];
562
private void AddCaseForOuterJoins(CaseStatement caseForOuterJoins,
CqlBlock
child, int slotNum, CqlIdentifiers identifiers)
System\Data\Mapping\ViewGeneration\Structures\ProjectedSlot.cs (2)
64
/// and returns a new deeply qualified slot (as opposed to <see cref="
CqlBlock
.QualifySlotWithBlockAlias"/>).
66
internal virtual ProjectedSlot DeepQualify(
CqlBlock
block)
System\Data\Mapping\ViewGeneration\Structures\QualifiedCellIdBoolean.cs (2)
27
internal QualifiedCellIdBoolean(
CqlBlock
block, CqlIdentifiers identifiers, int originalCellNum)
35
private readonly
CqlBlock
m_block;