2 instantiations of LeftCellWrapper
System.Data.Entity (2)
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (1)
399
LeftCellWrapper wrapper = new
LeftCellWrapper
(m_viewgenContext.ViewTarget, temp.Attributes,
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
317
LeftCellWrapper leftWrapper = new
LeftCellWrapper
(m_viewTarget, attributes, leftFragmentQuery, left, right, m_memberMaps,
135 references to LeftCellWrapper
System.Data.Entity (135)
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (3)
34
internal BasicViewGenerator(MemberProjectionIndex projectedSlotMap, List<
LeftCellWrapper
> usedCells, FragmentQuery activeDomain,
50
private List<
LeftCellWrapper
> m_usedCells;
77
foreach (
LeftCellWrapper
cell in m_usedCells)
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (1)
399
LeftCellWrapper
wrapper = new LeftCellWrapper(m_viewgenContext.ViewTarget, temp.Attributes,
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (13)
60
List<
LeftCellWrapper
> _usedCells = new List<
LeftCellWrapper
>();
92
foreach (
LeftCellWrapper
leftCellWrapper in _context.AllWrappersForExtent)
193
internal List<
LeftCellWrapper
> UsedCells
498
IEnumerable<
LeftCellWrapper
> usedCells = _context.AllWrappersForExtent.Where(w => _usedViews.Contains(w.FragmentQuery));
688
foreach (
LeftCellWrapper
leftCellWrapper in _context.AllWrappersForExtent)
700
Domain.GetDefaultValueForMemberPath(memberPath, new
LeftCellWrapper
[] { leftCellWrapper }, _config);
720
LeftCellWrapper
fragment = _context.AllWrappersForExtent.First(lcr => lcr.FragmentQuery.Equals(toFill.Query));
737
private List<
LeftCellWrapper
> RemapFromVariables()
739
List<
LeftCellWrapper
> usedCells = new List<
LeftCellWrapper
>();
744
foreach (
LeftCellWrapper
leftCellWrapper in _context.AllWrappersForExtent)
1188
LeftCellWrapper
leftCellWrapper = context.AllWrappersForExtent.First(w => w.FragmentQuery == view);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (16)
61
foreach (
LeftCellWrapper
wrapper in _viewgenContext.AllWrappersForExtent)
171
private void ReportConstraintViolation(string message, BoolExpression extraConstraint, ViewGenErrorCode errorCode, IEnumerable<
LeftCellWrapper
> relevantWrappers)
180
HashSet<
LeftCellWrapper
> relevantCellWrappers = new HashSet<
LeftCellWrapper
>(relevantWrappers);
181
List<
LeftCellWrapper
> relevantWrapperList = new List<
LeftCellWrapper
>(relevantCellWrappers);
182
relevantWrapperList.Sort(
LeftCellWrapper
.OriginalCellIdComparer);
239
private void CheckConstraintsOnProjectedConditionMembers(Dictionary<MemberValueBinding, CellTreeNode> memberValueTrees,
LeftCellWrapper
wrapper, CellTreeNode sQueryTree, BoolExpression inExtentCondition)
269
sCombinedTree.GetLeaves().Concat(new
LeftCellWrapper
[] { wrapper }));
283
internal static BoolExpression PropagateCellConstantsToWhereClause(
LeftCellWrapper
wrapper, BoolExpression expression,
326
private static FragmentQuery AddNullConditionOnCSideFragment(
LeftCellWrapper
wrapper, MemberPath member, MemberMaps memberMaps)
350
private void CheckConstraintsOnNonNullableMembers(Dictionary<MemberValueBinding, CellTreeNode> memberValueTrees,
LeftCellWrapper
wrapper, CellTreeNode sQueryTree, BoolExpression inExtentCondition)
482
LeftCellWrapper
m_wrapper;
486
private DomainConstraintVisitor(
LeftCellWrapper
wrapper, ViewgenContext context, ErrorLog errorLog)
493
internal static void CheckConstraints(CellTreeNode node,
LeftCellWrapper
wrapper,
533
new
LeftCellWrapper
[] { m_wrapper, node.LeftCellWrapper }, String.Empty);
System\Data\Mapping\ViewGeneration\Structures\CellTreeNode.cs (1)
114
internal List<
LeftCellWrapper
> GetLeaves()
System\Data\Mapping\ViewGeneration\Structures\CellTreeNodeVisitors.cs (8)
19
using WrapperBoolExpr = BoolExpr<
LeftCellWrapper
>;
20
using WrapperTreeExpr = TreeExpr<
LeftCellWrapper
>;
21
using WrapperAndExpr = AndExpr<
LeftCellWrapper
>;
22
using WrapperOrExpr = OrExpr<
LeftCellWrapper
>;
23
using WrapperNotExpr = NotExpr<
LeftCellWrapper
>;
24
using WrapperTermExpr = TermExpr<
LeftCellWrapper
>;
25
using WrapperTrueExpr = TrueExpr<
LeftCellWrapper
>;
26
using WrapperFalseExpr = FalseExpr<
LeftCellWrapper
>;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (1)
197
internal static Constant GetDefaultValueForMemberPath(MemberPath memberPath, IEnumerable<
LeftCellWrapper
> wrappersForErrorReporting,
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (2)
105
IEnumerable<
LeftCellWrapper
> wrappers, string debugMessage)
108
IEnumerable<Cell> cells =
LeftCellWrapper
.GetInputCellsForWrappers(wrappers);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (4)
28
internal LeafCellTreeNode(ViewgenContext context,
LeftCellWrapper
cellWrapper)
39
internal LeafCellTreeNode(ViewgenContext context,
LeftCellWrapper
cellWrapper, FragmentQuery rightFragmentQuery)
52
private
LeftCellWrapper
m_cellWrapper;
58
internal
LeftCellWrapper
LeftCellWrapper
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (21)
43
internal static readonly IEqualityComparer<
LeftCellWrapper
> BoolEqualityComparer = new BoolWrapperComparer();
58
internal static readonly IComparer<
LeftCellWrapper
> Comparer = new LeftCellWrapperComparer();
59
internal static readonly IComparer<
LeftCellWrapper
> OriginalCellIdComparer = new CellIdComparer();
176
internal static IEnumerable<Cell> GetInputCellsForWrappers(IEnumerable<
LeftCellWrapper
> wrappers)
178
foreach (
LeftCellWrapper
wrapper in wrappers)
204
internal static string GetExtentListAsUserString(IEnumerable<
LeftCellWrapper
> wrappers)
207
foreach (
LeftCellWrapper
wrapper in wrappers)
242
internal static void WrappersToStringBuilder(StringBuilder builder, List<
LeftCellWrapper
> wrappers,
249
LeftCellWrapper
[] cellWrappers = wrappers.ToArray();
250
Array.Sort(cellWrappers,
LeftCellWrapper
.OriginalCellIdComparer);
252
foreach (
LeftCellWrapper
wrapper in cellWrappers)
343
private class BoolWrapperComparer : IEqualityComparer<
LeftCellWrapper
>
346
public bool Equals(
LeftCellWrapper
left,
LeftCellWrapper
right)
366
public int GetHashCode(
LeftCellWrapper
wrapper)
377
private class LeftCellWrapperComparer : IComparer<
LeftCellWrapper
>
380
public int Compare(
LeftCellWrapper
x,
LeftCellWrapper
y)
405
internal class CellIdComparer : IComparer<
LeftCellWrapper
>
408
public int Compare(
LeftCellWrapper
x,
LeftCellWrapper
y)
System\Data\Mapping\ViewGeneration\Validation\ConstraintBase.cs (8)
20
using WrapperBoolExpr = BoolExpr<
LeftCellWrapper
>;
21
using WrapperTreeExpr = TreeExpr<
LeftCellWrapper
>;
22
using WrapperAndExpr = AndExpr<
LeftCellWrapper
>;
23
using WrapperOrExpr = OrExpr<
LeftCellWrapper
>;
24
using WrapperNotExpr = NotExpr<
LeftCellWrapper
>;
25
using WrapperTermExpr = TermExpr<
LeftCellWrapper
>;
26
using WrapperTrueExpr = TrueExpr<
LeftCellWrapper
>;
27
using WrapperFalseExpr = FalseExpr<
LeftCellWrapper
>;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (31)
92
foreach (
var
fragment in m_viewgenContext.AllWrappersForExtent)
145
private static bool IsMemberPartOfNotNullCondition(IEnumerable<
LeftCellWrapper
> wrappers, MemberPath leftMember, ViewTarget viewTarget)
148
foreach (
var
leftCellWrapper in wrappers)
183
List<
LeftCellWrapper
> leftCellWrappers = m_viewgenContext.AllWrappersForExtent;
190
Dictionary<CompositeCondition,
LeftCellWrapper
> firstLCWForCondition = new Dictionary<CompositeCondition,
LeftCellWrapper
>(new ConditionComparer());
192
foreach (
var
leftCellWrapper in leftCellWrappers)
225
memberPath.IsNullable && IsMemberPartOfNotNullCondition(new
LeftCellWrapper
[] { leftCellWrapper }, memberPath, m_viewgenContext.ViewTarget))
229
!IsMemberPartOfNotNullCondition(new
LeftCellWrapper
[] { leftCellWrapper }, rightMemberPath, m_viewgenContext.ViewTarget))
283
private MemberPath GetRightMemberPath(MemberPath conditionMember,
LeftCellWrapper
leftCellWrapper)
304
List<
LeftCellWrapper
> leftCellWrappers = m_viewgenContext.AllWrappersForExtent;
311
LeftCellWrapper
firstLeftCWrapper = nonAssociationWrappers.First();
314
foreach (
var
leftCellWrapper in nonAssociationWrappers)
340
List<
LeftCellWrapper
> mappingFragments = m_viewgenContext.AllWrappersForExtent;
344
foreach (
var
fragment1 in mappingFragments)
346
foreach (
var
fragment2 in mappingFragments.Skip(++i))
600
private void GetTypesAndConditionForWrapper(
LeftCellWrapper
wrapper, out bool hasCondition, out List<EdmType> edmTypes)
631
private bool CheckForStoreConditions(
LeftCellWrapper
wrapper)
637
private void CheckThatConditionMemberIsNotMapped(MemberPath conditionMember, List<
LeftCellWrapper
> mappingFragments, Set<MemberPath> mappedConditionMembers)
641
foreach (
var
anotherFragment in mappingFragments)
681
private bool CSideHasDifferentEntitySets(
LeftCellWrapper
a,
LeftCellWrapper
b)
693
private bool CompareC(ComparisonOP op, ViewgenContext context,
LeftCellWrapper
leftWrapper1,
LeftCellWrapper
leftWrapper2, FragmentQuery rightQuery1, FragmentQuery rightQuery2)
698
private bool CompareS(ComparisonOP op, ViewgenContext context,
LeftCellWrapper
leftWrapper1,
LeftCellWrapper
leftWrapper2, FragmentQuery rightQuery1, FragmentQuery rightQuery2)
703
private bool Compare(bool lookingForC, ComparisonOP op, ViewgenContext context,
LeftCellWrapper
leftWrapper1,
LeftCellWrapper
leftWrapper2, FragmentQuery rightQuery1, FragmentQuery rightQuery2)
745
private bool RightSideEqual(
LeftCellWrapper
wrapper1,
LeftCellWrapper
wrapper2)
753
private FragmentQuery CreateRightFragmentQuery(
LeftCellWrapper
wrapper)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (11)
236
string childExtents =
LeftCellWrapper
.GetExtentListAsUserString(cNode.GetLeaves());
237
string parentExtents =
LeftCellWrapper
.GetExtentListAsUserString(pNode.GetLeaves());
241
Set<
LeftCellWrapper
> allWrappers = new Set<
LeftCellWrapper
>(pNode.GetLeaves());
334
IEnumerable<
LeftCellWrapper
> parentWrappers = GetWrappersFromContext(parentContext, ParentTable);
335
IEnumerable<
LeftCellWrapper
> childWrappers = GetWrappersFromContext(childContext, ChildTable);
336
Set<
LeftCellWrapper
> bothExtentWrappers =
337
new Set<
LeftCellWrapper
>(parentWrappers);
617
private static List<
LeftCellWrapper
> GetWrappersFromContext(ViewgenContext context, EntitySetBase extent)
619
List<
LeftCellWrapper
> wrappers;
622
wrappers = new List<
LeftCellWrapper
>();
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (9)
40
private List<
LeftCellWrapper
> m_cellWrappers;
101
foreach (
LeftCellWrapper
leftCellWrapper in m_cellWrappers)
122
m_cellWrappers.Sort(
LeftCellWrapper
.Comparer);
208
internal List<
LeftCellWrapper
> AllWrappersForExtent
267
foreach (
LeftCellWrapper
wrapper in m_cellWrappers)
278
ErrorLog.Record record = new ErrorLog.Record(true, ViewGenErrorCode.ConcurrencyTokenHasCondition, builder.ToString(), new
LeftCellWrapper
[] { wrapper }, String.Empty);
298
m_cellWrappers = new List<
LeftCellWrapper
>();
317
LeftCellWrapper
leftWrapper = new LeftCellWrapper(m_viewTarget, attributes, leftFragmentQuery, left, right, m_memberMaps,
373
LeftCellWrapper
.WrappersToStringBuilder(builder, m_cellWrappers, "Left Celll Wrappers");
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (6)
27
using WrapperBoolExpr = BoolExpr<
LeftCellWrapper
>;
28
using WrapperTrueExpr = TrueExpr<
LeftCellWrapper
>;
29
using WrapperFalseExpr = FalseExpr<
LeftCellWrapper
>;
30
using WrapperNotExpr = NotExpr<
LeftCellWrapper
>;
31
using WrapperOrExpr = OrExpr<
LeftCellWrapper
>;
456
private CellTreeNode GenerateSimplifiedView(CellTreeNode basicView, List<
LeftCellWrapper
> usedCells)