94 references to MemberPath
System.Data.Entity (94)
System\Data\Mapping\ViewGeneration\CellCreator.cs (5)
107.Select(restriction => restriction.RestrictedMemberSlot.MemberPath).Contains(boolMember))) 125var cSideMembers = cell.SQuery.GetProjectedPositions(sSideMemberToExpand).Select(pos => ((MemberProjectedSlot)cell.CQuery.ProjectedSlotAt(pos)).MemberPath); 206MemberPath rightSidePath = rightConditionMemberSlot.MemberPath; 215.Where(restriction => restriction.RestrictedMemberSlot.MemberPath.Equals(memberToExpand)) 218.Where(restriction => restriction.RestrictedMemberSlot.MemberPath.Equals(rightSidePath))
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQuery.cs (1)
178varHashCode ^= MemberPath.EqualityComparer.GetHashCode(oneOf.RestrictedMemberSlot.MemberPath);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (1)
120MemberPath conditionMember = variableCondition.RestrictedMemberSlot.MemberPath;
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (1)
1256select ((MemberRestriction)domainConstraint.Variable.Identifier).RestrictedMemberSlot.MemberPath;
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (8)
300IEnumerable<Constant> possibleValues = memberMaps.QueryDomainMap.GetDomain(joinSlot.MemberPath); 314MemberRestriction restriction = new ScalarRestriction(joinSlot.MemberPath, allowedValues, possibleValues); 329if (projectedSlot == null || !projectedSlot.MemberPath.IsNullable) //don't bother checking further fore non nullable C-side member 335IEnumerable<Constant> possibleValues = memberMaps.QueryDomainMap.GetDomain(projectedSlot.MemberPath); 340MemberRestriction restriction = new ScalarRestriction(projectedSlot.MemberPath, allowedValues, possibleValues); 438if (TryGetCellTreeNode(oneOf.RestrictedMemberSlot.MemberPath, value, out singleNode)) 519if (!MemberPath.EqualityComparer.Equals(thisSlot.MemberPath, thatSlot.MemberPath))
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (2)
119Debug.Assert(m_memberPath.Equals(((MemberProjectedSlot)m_elseValue).MemberPath), "case statement slot (ELSE) must depend only on its own slot value"); 126Debug.Assert(m_memberPath.Equals(((MemberProjectedSlot)whenThen.Value).MemberPath), "case statement slot (THEN) must depend only on its own slot value");
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (1)
142cSideMembers.Add((EdmProperty)slot.MemberPath.LeafEdmMember);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (16)
310return slot0.MemberPath.IsEquivalentViaRefConstraint(slot1.MemberPath); 326MemberProjectedSlot slot = MemberProjectedSlot.GetSlotForMember(m_projectedSlots, restriction.RestrictedMemberSlot.MemberPath); 346if (MemberProjectedSlot.GetSlotForMember(associationCell.GetLeftQuery(target).ProjectedSlots, restriction.RestrictedMemberSlot.MemberPath) != null) 359restriction.RestrictedMemberSlot.MemberPath.PathToString(false))); 409int newSlotNum = projectedSlotMap.IndexOf(slot.MemberPath); 448attributes.Add(projectedVar.MemberPath); 525yield return slot.MemberPath; 577if (slot != null && MemberPath.EqualityComparer.Equals(member, slot.MemberPath)) 615if (slot != null && slot.MemberPath.RootEdmMember.Equals(endMember)) 680IEnumerable<Constant> possibleValues = domainMap.GetDomain(restriction.RestrictedMemberSlot.MemberPath); 696domainMap.AddSentinel(newOneOf.RestrictedMemberSlot.MemberPath); 703domainMap.RemoveSentinel(newOneOf.RestrictedMemberSlot.MemberPath); 794slot.MemberPath.GetIdentifiers(identifiers); 898StructuralType st = jtn.MemberPath.LeafEdmMember.DeclaringType; 900jtn.MemberPath.AsEsql(sb, "e");
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (7)
353CellConstantSet cDomain = DeriveDomainFromMemberPath(slot.MemberPath, edmItemCollection, isValidationEnabled); 358bool found = cDomainMap.TryGetValue(slot.MemberPath, out values); 361cDomainMap[slot.MemberPath] = cDomain; 375CellConstantSet domainValues = DeriveDomainFromMemberPath(slot.MemberPath, edmItemCollection, true /* leaveDomainUnbounded */); 437MemberPath sSlotMemberPath = sSlot.MemberPath; 469.Where(restriction => MemberPath.EqualityComparer.Equals(restriction.RestrictedMemberSlot.MemberPath, slot.MemberPath))
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (1)
279MemberPath path = slot.MemberPath;
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (4)
88MemberPath memberPath = condition.RestrictedMemberSlot.MemberPath; 144MemberPath member = slot.MemberPath; 281MemberPath cPath = cSlot.MemberPath; 282MemberPath sPath = sSlot.MemberPath;
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (3)
126if (remap.TryGetValue(MemberPath, out remappedNode)) 132return new MemberProjectedSlot(MemberPath); 183if (MemberPath.EqualityComparer.Equals(slot.MemberPath, member))
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (4)
114IEnumerable<Constant> domain = domainMap.GetDomain(m_restrictedMemberSlot.MemberPath); 135MemberPath member = RestrictedMemberSlot.MemberPath; 285string variableName = m_restrictedMemberSlot.MemberPath.PathToString(false); 318EdmType memberType = RestrictedMemberSlot.MemberPath.EdmType;
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (18)
63IEnumerable<Constant> newPossibleValues = memberDomainMap.GetDomain(RestrictedMemberSlot.MemberPath); 94cqt = negated.AsCqt(row, domainValues, this.RestrictedMemberSlot.MemberPath, skipIsNotNull); 101cqt = this.RestrictedMemberSlot.MemberPath.AsCqt(row); 105cqt = cqt.Equal(domainValues.Single().AsCqt(row, this.RestrictedMemberSlot.MemberPath)); 110List<DbExpression> operands = domainValues.Select(c => (DbExpression)cqt.Equal(c.AsCqt(row, this.RestrictedMemberSlot.MemberPath))).ToList(); 118DbExpression varIsNotNull = this.RestrictedMemberSlot.MemberPath.AsCqt(row).IsNull().Not(); 125DbExpression varIsNull = this.RestrictedMemberSlot.MemberPath.AsCqt(row).IsNull(); 153negated.AsUserString(builder, blockAlias, domainValues, RestrictedMemberSlot.MemberPath, skipIsNotNull); 157negated.AsEsql(builder, blockAlias, domainValues, RestrictedMemberSlot.MemberPath, skipIsNotNull); 164this.RestrictedMemberSlot.MemberPath.AsEsql(builder, blockAlias); 175domainValues.Single().AsEsql(builder, RestrictedMemberSlot.MemberPath, blockAlias); 195constant.AsEsql(builder, RestrictedMemberSlot.MemberPath, blockAlias); 214this.RestrictedMemberSlot.MemberPath.ToCompactString(builder, Strings.ViewGen_EntityInstanceToken); 219this.RestrictedMemberSlot.MemberPath.AsEsql(builder, blockAlias); 235this.RestrictedMemberSlot.MemberPath.ToCompactString(varIsNullBuilder, blockAlias); 240this.RestrictedMemberSlot.MemberPath.AsEsql(varIsNullBuilder, blockAlias); 266Debug.Assert(this.RestrictedMemberSlot.MemberPath.IsScalarType(), "Expected scalar."); 305bool excludeNull = !skipIsNotNull && this.RestrictedMemberSlot.MemberPath.IsNullable;
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (9)
62IEnumerable<Constant> possibleValues = memberDomainMap.GetDomain(RestrictedMemberSlot.MemberPath); 100if (Helper.IsRefType(this.RestrictedMemberSlot.MemberPath.EdmType)) 103this.RestrictedMemberSlot.MemberPath.AsEsql(builder, blockAlias); 109this.RestrictedMemberSlot.MemberPath.AsEsql(builder, blockAlias); 134DbExpression cqt = this.RestrictedMemberSlot.MemberPath.AsCqt(row); 136if (Helper.IsRefType(this.RestrictedMemberSlot.MemberPath.EdmType)) 160if (Helper.IsRefType(RestrictedMemberSlot.MemberPath.EdmType)) 163RestrictedMemberSlot.MemberPath.AsEsql(builder, blockAlias); 169RestrictedMemberSlot.MemberPath.AsEsql(builder, blockAlias);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (4)
125if (condition.RestrictedMemberSlot.MemberPath.Equals(member)) 164MemberPath rightmember = ((MemberProjectedSlot)rightCellQuery.ProjectedSlotAt(indexOfMemberInProjection)).MemberPath; 200MemberPath memberPath = condition.RestrictedMemberSlot.MemberPath; 295return ((MemberProjectedSlot)leftCellQuery.ProjectedSlotAt(firstProjectedPosition)).MemberPath;
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (2)
695childPaths.Add(childSlot.MemberPath); 718parentPaths.Add(parentSlot.MemberPath);
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (6)
78MemberPath path1 = firstSlot.CSlot.MemberPath; 79MemberPath path2 = secondSlot.CSlot.MemberPath; 105EntitySetBase table = keySlots[0].SSlot.MemberPath.Extent; 106EntitySetBase cSet = keySlots[0].CSlot.MemberPath.Extent; 155EntitySetBase table = keySlots[0].SSlot.MemberPath.Extent; 156EntitySetBase cSet = keySlots[0].CSlot.MemberPath.Extent;
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
270wrapper.OnlyInputCell.CQuery.WhereClause.MemberRestrictions.Select(oneOf => oneOf.RestrictedMemberSlot.MemberPath),