41 references to Domain
System.Data.Entity (41)
System\Data\Mapping\ViewGeneration\CellCreator.cs (3)
106.Where(restriction => restriction.Domain.Values.Contains(Constant.NotNull)) 216.Where(restriction => restriction.Domain.Values.Contains(negatedCondition)).Any() 219.Where(restriction => restriction.Domain.Values.Contains(negatedCondition)).Any())
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQuery.cs (1)
179foreach (Constant constant in oneOf.Domain.Values)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (1)
123Domain conditionValues = variableCondition.Domain;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (4)
324if (restriction.Domain.ContainsNotNull()) 690!scalarConst.Domain.Contains(Constant.Null) && 691!scalarConst.Domain.Contains(Constant.NotNull) && 692!scalarConst.Domain.Contains(Constant.Undefined);
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (2)
356cDomain.AddRange(restriction.Domain.Values.Where(c => !(c.Equals(Constant.Null) || c.Equals(Constant.NotNull)))); 470.Select(restriction => new CellConstantSet(restriction.Domain.Values, Constant.EqualityComparer));
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (2)
105if (condition.Domain.Values.All(conditionConstant => (conditionConstant.Equals(Constant.NotNull)))) 120if (domainValues.Count <= 0 || (!domainValues.Contains(Constant.Null) && condition.Domain.Values.Contains(Constant.Null)))
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (4)
34/// "Partial" means that the <see cref="Domain"/> in this restriction is partial - hence the operations on the restriction are limited. 209foreach (Constant constant in Domain.Values) 226foreach (Constant constant in Domain.Values) 237constants = new Set<Constant>(Domain.Values, Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (7)
71return new ScalarRestriction(newVar, this.Domain); 77return new ScalarRestriction(this.RestrictedMemberSlot, new Domain(this.Domain.Values, possibleValues)); 269Debug.Assert(this.Domain.Values.Count(c => c is NegatedConstant) <= 1, "Multiple negated constants?"); 270NegatedConstant negated = (NegatedConstant)this.Domain.Values.FirstOrDefault(c => c is NegatedConstant); 273negatedConstantAsCql(negated, this.Domain.Values); 288Set<Constant> domainValues = new Set<Constant>(this.Domain.Values, Constant.EqualityComparer); 335StringUtil.ToCommaSeparatedStringSorted(builder, Domain.Values);
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (12)
70return new TypeRestriction(newVar, this.Domain); 76return new TypeRestriction(this.RestrictedMemberSlot, new Domain(this.Domain.Values, possibleValues)); 84if (this.Domain.Count > 1) 90foreach (Constant constant in this.Domain.Values) 124if (Domain.Count > 1) 141if (this.Domain.Count == 1) 144cqt = cqt.IsOfOnly(TypeUsage.Create(((TypeConstant)this.Domain.Values.Single()).EdmType)); 149List<DbExpression> operands = this.Domain.Values.Select(t => (DbExpression)cqt.IsOfOnly(TypeUsage.Create(((TypeConstant)t).EdmType))).ToList(); 172if (Domain.Count > 1) 182foreach (Constant constant in Domain.Values) 204if (Domain.Count > 1) 236StringUtil.ToCommaSeparatedStringSorted(builder, Domain.Values);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (5)
98foreach (var cellConst in restriction.Domain.Values) 127if (condition.Domain.Values.Contains(Constant.NotNull)) 133foreach (NegatedConstant negatedConst in condition.Domain.Values.Select(cellConstant => cellConstant as NegatedConstant).Where(negated => negated != null)) 241foreach (var element in condition.Domain.Values) 609foreach (var cellConst in restriction.Domain.Values)