5 instantiations of CaseStatement
System.Data.Entity (5)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (3)
507
CaseStatement caseStatement = new
CaseStatement
(currentPath);
767
CaseStatement newCaseStatement = new
CaseStatement
(entry.Key);
790
CaseStatement caseStmt = new
CaseStatement
(memberPath);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
83
CaseStatement result = new
CaseStatement
(m_memberPath);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (1)
471
caseForOuterJoins = new
CaseStatement
(outputMember);
39 references to CaseStatement
System.Data.Entity (39)
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (11)
35
CaseStatement
> caseStatements,
60
private readonly Dictionary<MemberPath,
CaseStatement
> m_caseStatements;
139
foreach (
CaseStatement
statement in m_caseStatements.Values)
154
foreach (
CaseStatement
caseStatement in m_caseStatements.Values)
172
foreach (
CaseStatement
caseStatement in m_caseStatements.Values)
241
CaseStatement
thisCaseStatement = m_caseStatements[thisMember];
273
CaseStatement
thisCaseStatement,
291
CaseStatement
newCaseStatement = thisCaseStatement.DeepQualify(childBlock);
352
CaseStatement
statement = m_caseStatements[caseMemberPath];
357
foreach (
CaseStatement
.WhenThen clause in statement.Clauses)
457
CaseStatement
statement = m_caseStatements[member];
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (11)
63
Dictionary<MemberPath,
CaseStatement
> _caseStatements = new Dictionary<MemberPath,
CaseStatement
>();
174
internal Dictionary<MemberPath,
CaseStatement
> CaseStatements
341
private bool AddRewritingToCaseStatement(Tile<FragmentQuery> rewriting,
CaseStatement
caseStatement, MemberPath currentPath, Constant domainValue)
507
CaseStatement
caseStatement = new CaseStatement(currentPath);
601
private void AddElseDefaultToCaseStatement(MemberPath currentPath,
CaseStatement
caseStatement, List<Constant> domain,
764
Dictionary<MemberPath,
CaseStatement
> newCaseStatements = new Dictionary<MemberPath,
CaseStatement
>();
767
CaseStatement
newCaseStatement = new CaseStatement(entry.Key);
769
foreach (
CaseStatement
.WhenThen clause in entry.Value.Clauses)
790
CaseStatement
caseStmt = new CaseStatement(memberPath);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (11)
78
/// Recursively qualifies all <see cref="ProjectedSlot"/>s and returns a new deeply qualified <see cref="
CaseStatement
"/>.
80
internal
CaseStatement
DeepQualify(CqlBlock block)
83
CaseStatement
result = new CaseStatement(m_memberPath);
111
/// Returns true if the <see cref="
CaseStatement
"/> depends on (projects) its slot in THEN value or ELSE value.
171
/// Simplifies the <see cref="
CaseStatement
"/> so that unnecessary WHEN/THENs for nulls/undefined values are eliminated.
181
List<
CaseStatement
.WhenThen> clauses = new List<
CaseStatement
.WhenThen>();
225
/// Generates eSQL for the current <see cref="
CaseStatement
"/>.
239
foreach (
CaseStatement
.WhenThen clause in this.Clauses)
260
/// Generates CQT for the current <see cref="
CaseStatement
"/>.
267
foreach (
CaseStatement
.WhenThen clause in this.Clauses)
System\Data\Mapping\ViewGeneration\Structures\CaseStatementProjectedSlot.cs (4)
19
/// This class is just a wrapper over case statements so that we don't pollute the <see cref="
CaseStatement
"/> class itself.
27
internal CaseStatementProjectedSlot(
CaseStatement
statement, IEnumerable<WithRelationship> withRelationships)
38
private readonly
CaseStatement
m_caseStatement;
50
CaseStatement
newStatement = m_caseStatement.DeepQualify(block);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (2)
432
CaseStatement
caseForOuterJoins = null;
562
private void AddCaseForOuterJoins(
CaseStatement
caseForOuterJoins, CqlBlock child, int slotNum, CqlIdentifiers identifiers)