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