4 instantiations of NegatedConstant
System.Data.Entity (4)
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (1)
29internal static readonly Constant NotNull = new NegatedConstant( new Constant[] { NullConstant.Instance });
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (2)
96NegatedConstant negatedPossibleValue = new NegatedConstant(m_possibleValues); 274result.Add(new NegatedConstant(possibleValues));
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
217NegatedConstant negatedConstant = new NegatedConstant(possibleValues);
35 references to NegatedConstant
System.Data.Entity (35)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
254Constant negatedValue = oldDomain.FirstOrDefault(domainValue => domainValue is NegatedConstant); 1134if (domainValue is NegatedConstant)
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (3)
296Debug.Assert(constant is ScalarConstant || constant.IsNull() || constant is NegatedConstant, "Invalid type of constant"); 304if (constant is NegatedConstant) 308allowedValues.Difference(((NegatedConstant)constant).Elements);
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (1)
47/// Implemented in <see cref="NegatedConstant"/> class, all other implementations return false.
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (12)
96NegatedConstant negatedPossibleValue = new NegatedConstant(m_possibleValues); 235NegatedConstant negated = GetNegatedConstant(m_domain); 271NegatedConstant negated = constant as NegatedConstant; 310NegatedConstant negated = constant as NegatedConstant; 320Debug.Assert(constElement as NegatedConstant == null, "Negated cell constant inside NegatedCellConstant"); 512private static NegatedConstant GetNegatedConstant(IEnumerable<Constant> constants) 514NegatedConstant result = null; 517NegatedConstant negated = constant as NegatedConstant; 561NegatedConstant negated = GetNegatedConstant(m_domain); // Can be null or not-null
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (3)
205possibleValues.Any(c => c is NegatedConstant) == false) 217NegatedConstant negatedConstant = new NegatedConstant(possibleValues); 288cDomain.Unite(sDomain.Where(constant => !constant.IsNull() && !(constant is NegatedConstant)));
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (3)
208NegatedConstant negatedConstant = null; 211negatedConstant = constant as NegatedConstant; 228if (!(constant is NegatedConstant))
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (4)
30/// <param name="values">must have no <see cref=" NegatedConstant"/> items</param> 33Debug.Assert(!values.Any(v => v is NegatedConstant), "Negated constant values must not contain another negated constant."); 103NegatedConstant rightNegatedConstant = right as NegatedConstant;
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (5)
260Action<NegatedConstant, IEnumerable<Constant>> negatedConstantAsCql, 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);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
133foreach (NegatedConstant negatedConst in condition.Domain.Values.Select(cellConstant => cellConstant as NegatedConstant).Where(negated => negated != null))