19 instantiations of MemberProjectedSlot
System.Data.Entity (19)
System\Data\Mapping\ViewGeneration\CellCreator.cs (2)
393cSlots.Add(new MemberProjectedSlot(cAttributeNode)); 394sSlots.Add(new MemberProjectedSlot(sAttributeNode));
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQuery.cs (2)
123return BoolExpression.CreateLiteral(new TypeRestriction(new MemberProjectedSlot(path), 128return BoolExpression.CreateLiteral(new ScalarRestriction(new MemberProjectedSlot(path),
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
187nullCondition = BoolExpression.CreateLiteral(new ScalarRestriction(new MemberProjectedSlot(childPath), 192nullCondition = BoolExpression.CreateLiteral(new TypeRestriction(new MemberProjectedSlot(childPath), 212BoolExpression typeCondition = BoolExpression.CreateLiteral(new TypeRestriction(new MemberProjectedSlot(currentPath), typeDomain), domainMap);
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
326domainQueryCondition = BoolExpression.CreateLiteral(new TypeRestriction(new MemberProjectedSlot(_extentPath), typeDomain), _domainMap); 363projectedSlot = new MemberProjectedSlot(currentPath);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
547slots.Add(new MemberProjectedSlot(SourceExtentMemberPath));
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
238MemberProjectedSlot sSlot = new MemberProjectedSlot(new MemberPath(sRootNode, scalarPropertyMap.ColumnProperty));
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (2)
292int projectedPosition = RightCellQuery.GetProjectedPosition(new MemberProjectedSlot(member)); 310int projectedPosition = LeftCellQuery.GetProjectedPosition(new MemberProjectedSlot(member));
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (2)
128return new MemberProjectedSlot(remappedNode); 132return new MemberProjectedSlot(MemberPath);
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (2)
35: base(new MemberProjectedSlot(member), value) 44: base(new MemberProjectedSlot(member), values, possibleValues)
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (2)
35: base(new MemberProjectedSlot(member), CreateTypeConstants(values)) 42: base(new MemberProjectedSlot(member), value)
147 references to MemberProjectedSlot
System.Data.Entity (147)
System\Data\Mapping\ViewGeneration\CellCreator.cs (3)
125var cSideMembers = cell.SQuery.GetProjectedPositions(sSideMemberToExpand).Select(pos => ((MemberProjectedSlot)cell.CQuery.ProjectedSlotAt(pos)).MemberPath); 205MemberProjectedSlot rightConditionMemberSlot = ((MemberProjectedSlot)originalCell.GetRightQuery(viewTarget).ProjectedSlotAt(indexOfBooLMemberInProjection));
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (8)
248MemberProjectedSlot slot = wrapper.RightCellQuery.ProjectedSlotAt(index) as MemberProjectedSlot; 287MemberProjectedSlot joinSlot = wrapper.GetCSideMappedSlotForSMember(member); 328MemberProjectedSlot projectedSlot = wrapper.GetCSideMappedSlotForSMember(member); 510MemberProjectedSlot thisSlot = thisQuery.ProjectedSlotAt(i) as MemberProjectedSlot; 513MemberProjectedSlot thatSlot = thatQuery.ProjectedSlotAt(i) as MemberProjectedSlot;
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (6)
117if (m_elseValue is MemberProjectedSlot) 119Debug.Assert(m_memberPath.Equals(((MemberProjectedSlot)m_elseValue).MemberPath), "case statement slot (ELSE) must depend only on its own slot value"); 124if (whenThen.Value is MemberProjectedSlot) 126Debug.Assert(m_memberPath.Equals(((MemberProjectedSlot)whenThen.Value).MemberPath), "case statement slot (THEN) must depend only on its own slot value"); 292Debug.Assert(slot is MemberProjectedSlot || slot is QualifiedSlot || slot is ConstantProjectedSlot, 320Debug.Assert(slot is MemberProjectedSlot || slot is QualifiedSlot || slot is ConstantProjectedSlot,
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (8)
136MemberProjectedSlot slot = projectedSlot as MemberProjectedSlot; 191Debug.Assert(cSlot is MemberProjectedSlot, "cSlot is expected to be MemberProjectedSlot"); 192Debug.Assert(sSlot is MemberProjectedSlot, "sSlot is expected to be MemberProjectedSlot"); 194MemberProjectedSlot cJoinSlot = (MemberProjectedSlot)cSlot; 195MemberProjectedSlot sJoinSlot = (MemberProjectedSlot)sSlot;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (39)
210KeyToListMap<MemberProjectedSlot, int> slotMap = new KeyToListMap<MemberProjectedSlot, int>(ProjectedSlot.EqualityComparer); 220MemberProjectedSlot slot = projectedSlot as MemberProjectedSlot; 230foreach (MemberProjectedSlot slot in slotMap.Keys) 257MemberProjectedSlot cSlot = (MemberProjectedSlot)cQuery.m_projectedSlots[index]; 307MemberProjectedSlot slot0 = (MemberProjectedSlot)m_projectedSlots[cSideSlotIndexes[0]]; 308MemberProjectedSlot slot1 = (MemberProjectedSlot)m_projectedSlots[cSideSlotIndexes[1]]; 326MemberProjectedSlot slot = MemberProjectedSlot.GetSlotForMember(m_projectedSlots, restriction.RestrictedMemberSlot.MemberPath); 346if (MemberProjectedSlot.GetSlotForMember(associationCell.GetLeftQuery(target).ProjectedSlots, restriction.RestrictedMemberSlot.MemberPath) != null) 405MemberProjectedSlot slot = m_projectedSlots[i] as MemberProjectedSlot; 446MemberProjectedSlot projectedVar = projectedSlot as MemberProjectedSlot; 498List<MemberProjectedSlot> keySlots = MemberProjectedSlot.GetKeySlots(GetMemberProjectedSlots(), prefix); 523foreach (MemberProjectedSlot slot in this.GetMemberProjectedSlots()) 530private IEnumerable<MemberProjectedSlot> GetMemberProjectedSlots() 534MemberProjectedSlot memberSlot = slot as MemberProjectedSlot; 544internal List<MemberProjectedSlot> GetAllQuerySlots() 546HashSet<MemberProjectedSlot> slots = new HashSet<MemberProjectedSlot>(GetMemberProjectedSlots()); 552return new List<MemberProjectedSlot>(slots); 557internal int GetProjectedPosition(MemberProjectedSlot slot) 561if (MemberProjectedSlot.EqualityComparer.Equals(slot, m_projectedSlots[i])) 576MemberProjectedSlot slot = m_projectedSlots[i] as MemberProjectedSlot; 614MemberProjectedSlot slot = m_projectedSlots[i] as MemberProjectedSlot; 791MemberProjectedSlot slot = projectedSlot as MemberProjectedSlot; 802List<MemberProjectedSlot> slots = GetAllQuerySlots(); 897MemberProjectedSlot jtn = ps as MemberProjectedSlot;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (6)
352MemberProjectedSlot slot = restriction.RestrictedMemberSlot; 373private static bool GetRestrictedOrUnrestrictedDomain(MemberProjectedSlot slot, CellQuery cellQuery, EdmItemCollection edmItemCollection, out CellConstantSet domain) 400foreach (MemberProjectedSlot sSlot in sQuery.GetConjunctsFromWhereClause().Select(oneOfConst => oneOfConst.RestrictedMemberSlot)) 424MemberProjectedSlot cSlot = cQuery.ProjectedSlotAt(projectedPosition) as MemberProjectedSlot; 465private static bool TryGetDomainRestrictedByWhereClause(IEnumerable<Constant> domain, MemberProjectedSlot slot, CellQuery cellQuery, out CellConstantSet result)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
238MemberProjectedSlot sSlot = new MemberProjectedSlot(new MemberPath(sRootNode, scalarPropertyMap.ColumnProperty));
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (7)
278MemberProjectedSlot slot = (MemberProjectedSlot)rightQuery.ProjectedSlotAt(keySlot); 290internal MemberProjectedSlot GetLeftSideMappedSlotForRightSideMember(MemberPath member) 305return slot as MemberProjectedSlot; 308internal MemberProjectedSlot GetRightSideMappedSlotForLeftSideMember(MemberPath member) 323return slot as MemberProjectedSlot; 326internal MemberProjectedSlot GetCSideMappedSlotForSMember(MemberPath member)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (7)
142foreach (MemberProjectedSlot slot in cellQuery.GetAllQuerySlots()) 272MemberProjectedSlot cSlot = cQuery.ProjectedSlotAt(i) as MemberProjectedSlot; 273MemberProjectedSlot sSlot = sQuery.ProjectedSlotAt(i) as MemberProjectedSlot; 416internal CellConstantSetInfo(Set<Constant> iconstants, MemberProjectedSlot islot) 422internal MemberProjectedSlot slot;
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (14)
106MemberProjectedSlot rightSlot = right as MemberProjectedSlot; 123internal MemberProjectedSlot RemapSlot(Dictionary<MemberPath, MemberPath> remap) 143internal static List<MemberProjectedSlot> GetKeySlots(IEnumerable<MemberProjectedSlot> slots, MemberPath prefix) 153List<MemberProjectedSlot> keySlots = GetSlots(slots, keys[0].KeyFields); 161internal static List<MemberProjectedSlot> GetSlots(IEnumerable<MemberProjectedSlot> slots, IEnumerable<MemberPath> members) 163List<MemberProjectedSlot> result = new List<MemberProjectedSlot>(); 166MemberProjectedSlot slot = GetSlotForMember(Helpers.AsSuperTypeList<MemberProjectedSlot, ProjectedSlot>(slots), member); 179internal static MemberProjectedSlot GetSlotForMember(IEnumerable<ProjectedSlot> slots, MemberPath member) 181foreach (MemberProjectedSlot slot in slots)
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (10)
36protected MemberRestriction(MemberProjectedSlot slot, Constant value) 43protected MemberRestriction(MemberProjectedSlot slot, IEnumerable<Constant> values) 52protected MemberRestriction(MemberProjectedSlot slot, Domain domain) 65protected MemberRestriction(MemberProjectedSlot slot, IEnumerable<Constant> values, IEnumerable<Constant> possibleValues) 73private readonly MemberProjectedSlot m_restrictedMemberSlot; 87internal MemberProjectedSlot RestrictedMemberSlot 154if (false == MemberProjectedSlot.EqualityComparer.Equals(m_restrictedMemberSlot, rightRestriction.m_restrictedMemberSlot)) 167int result = MemberProjectedSlot.EqualityComparer.GetHashCode(m_restrictedMemberSlot); 186return MemberProjectedSlot.EqualityComparer.Equals(m_restrictedMemberSlot, rightOneOfConst.m_restrictedMemberSlot); 194int result = MemberProjectedSlot.EqualityComparer.GetHashCode(m_restrictedMemberSlot);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (2)
539MemberProjectedSlot joinSlot = slot as MemberProjectedSlot;
System\Data\Mapping\ViewGeneration\Structures\ProjectedSlot.cs (4)
140MemberProjectedSlot memberSlot1 = slot1 as MemberProjectedSlot; 141MemberProjectedSlot memberSlot2 = slot2 as MemberProjectedSlot;
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (3)
50internal ScalarRestriction(MemberProjectedSlot slot, Domain domain) 70MemberProjectedSlot newVar = (MemberProjectedSlot)this.RestrictedMemberSlot.RemapSlot(remap);
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (3)
50internal TypeRestriction(MemberProjectedSlot slot, Domain domain) 69MemberProjectedSlot newVar = (MemberProjectedSlot)this.RestrictedMemberSlot.RemapSlot(remap);
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (5)
30IEnumerable<MemberProjectedSlot> slots) 34m_slots = new List<MemberProjectedSlot>(slots); 42private List<MemberProjectedSlot> m_slots; 140List<MemberProjectedSlot> keySlots = MemberProjectedSlot.GetSlots(m_slots, key.KeyFields);
System\Data\Mapping\ViewGeneration\Validation\BasicKeyConstraint.cs (3)
20internal class BasicKeyConstraint : KeyConstraint<BasicCellRelation, MemberProjectedSlot> 25internal BasicKeyConstraint(BasicCellRelation relation, IEnumerable<MemberProjectedSlot> keySlots) 39foreach (MemberProjectedSlot keySlot in KeySlots)
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
164MemberPath rightmember = ((MemberProjectedSlot)rightCellQuery.ProjectedSlotAt(indexOfMemberInProjection)).MemberPath; 295return ((MemberProjectedSlot)leftCellQuery.ProjectedSlotAt(firstProjectedPosition)).MemberPath;
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (4)
693MemberProjectedSlot childSlot = (MemberProjectedSlot)childCell.CQuery.ProjectedSlotAt(childSlotNum); 716MemberProjectedSlot parentSlot = (MemberProjectedSlot)parentCell.CQuery.ProjectedSlotAt(parentSlotNum);
System\Data\Mapping\ViewGeneration\Validation\ViewCellRelation.cs (1)
63internal ViewCellSlot LookupViewSlot(MemberProjectedSlot slot)
System\Data\Mapping\ViewGeneration\Validation\ViewCellSlot.cs (11)
30internal ViewCellSlot(int slotNum, MemberProjectedSlot cSlot, MemberProjectedSlot sSlot) 40private readonly MemberProjectedSlot m_cSlot; 41private readonly MemberProjectedSlot m_sSlot; 48internal MemberProjectedSlot CSlot 56internal MemberProjectedSlot SSlot 72MemberProjectedSlot.EqualityComparer.Equals(m_cSlot, rightSlot.m_cSlot) && 73MemberProjectedSlot.EqualityComparer.Equals(m_sSlot, rightSlot.m_sSlot); 78return MemberProjectedSlot.EqualityComparer.GetHashCode(m_cSlot) ^ 79MemberProjectedSlot.EqualityComparer.GetHashCode(m_sSlot) ^ 104MemberProjectedSlot actualSlot = isFromCside ? slot.CSlot : slot.SSlot;