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