59 references to RestrictedMemberSlot
System.Data.Entity (59)
System\Data\Mapping\ViewGeneration\CellCreator.cs (3)
107.Select(restriction => restriction.RestrictedMemberSlot.MemberPath).Contains(boolMember))) 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 (1)
438if (TryGetCellTreeNode(oneOf.RestrictedMemberSlot.MemberPath, value, out singleNode))
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (7)
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))); 550slots.Add(restriction.RestrictedMemberSlot); 680IEnumerable<Constant> possibleValues = domainMap.GetDomain(restriction.RestrictedMemberSlot.MemberPath); 696domainMap.AddSentinel(newOneOf.RestrictedMemberSlot.MemberPath); 703domainMap.RemoveSentinel(newOneOf.RestrictedMemberSlot.MemberPath);
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (3)
352MemberProjectedSlot slot = restriction.RestrictedMemberSlot; 400foreach (MemberProjectedSlot sSlot in sQuery.GetConjunctsFromWhereClause().Select(oneOfConst => oneOfConst.RestrictedMemberSlot)) 469.Where(restriction => MemberPath.EqualityComparer.Equals(restriction.RestrictedMemberSlot.MemberPath, slot.MemberPath))
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
88MemberPath memberPath = condition.RestrictedMemberSlot.MemberPath;
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (3)
93/// Returns the values that <see cref="RestrictedMemberSlot"/> is being checked for. 135MemberPath member = RestrictedMemberSlot.MemberPath; 318EdmType memberType = RestrictedMemberSlot.MemberPath.EdmType;
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (22)
63IEnumerable<Constant> newPossibleValues = memberDomainMap.GetDomain(RestrictedMemberSlot.MemberPath); 64BoolLiteral newLiteral = new ScalarRestriction(RestrictedMemberSlot, new Domain(range, newPossibleValues)); 70MemberProjectedSlot newVar = (MemberProjectedSlot)this.RestrictedMemberSlot.RemapSlot(remap); 77return new ScalarRestriction(this.RestrictedMemberSlot, new Domain(this.Domain.Values, possibleValues)); 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; 333RestrictedMemberSlot.ToCompactString(builder);
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (13)
62IEnumerable<Constant> possibleValues = memberDomainMap.GetDomain(RestrictedMemberSlot.MemberPath); 63BoolLiteral newLiteral = new TypeRestriction(RestrictedMemberSlot, new Domain(range, possibleValues)); 69MemberProjectedSlot newVar = (MemberProjectedSlot)this.RestrictedMemberSlot.RemapSlot(remap); 76return new TypeRestriction(this.RestrictedMemberSlot, new Domain(this.Domain.Values, possibleValues)); 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); 234RestrictedMemberSlot.ToCompactString(builder);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
125if (condition.RestrictedMemberSlot.MemberPath.Equals(member)) 200MemberPath memberPath = condition.RestrictedMemberSlot.MemberPath;
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
270wrapper.OnlyInputCell.CQuery.WhereClause.MemberRestrictions.Select(oneOf => oneOf.RestrictedMemberSlot.MemberPath),