53 references to Contains
System.Data.Entity (53)
System\Data\Common\Utils\Boolean\ConversionContext.cs (3)
128if (range.All(element => !domain.Contains(element))) 134if (domain.All(element => range.Contains(element))) 141Vertex[] children = domain.Select(element => range.Contains(element) ? Vertex.One : Vertex.Zero).ToArray();
System\Data\Common\Utils\MetadataHelper.cs (1)
494Debug.Assert(!references.Contains(b), "Dictionary already has a --> b reference");
System\Data\Mapping\FunctionImportMapping.cs (2)
132impliedEntityTypesBitMap[i] = impliedEntityTypesSet.Contains(this.MappedEntityTypes[i]); 507if (!reachableTypes.Contains(entityType))
System\Data\Mapping\StorageMappingItemLoader.cs (5)
514if (!actualEnds.Contains(expectedEnd)) 694if (!additionalSetsInClosure.Contains(end.EntitySet)) 711if (!additionalSetsInClosure.Contains(associationSet)) 715if (additionalSetsInClosure.Contains(end.EntitySet)) 4265if (m_seenParameters.Contains(parameter))
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (3)
78else if (null == RequiredEnds || !RequiredEnds.Contains(end.CorrespondingAssociationEndMember)) 98if (!RequiredEnds.Contains(principalEnd) && 99!OptionalEnds.Contains(principalEnd))
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (2)
83if (keyMembers.Contains(member)) 91if (foreignKeyMembers.Contains(member))
System\Data\Mapping\Update\Internal\SourceInterpreter.cs (1)
113return m_translator.ViewLoader.GetAffectedTables(extent, m_translator.MetadataWorkspace).Contains(m_sourceTable);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (6)
871if (!m_knownEntityKeys.Contains(key)) 891if (!m_knownEntityKeys.Contains(key)) 905if (!m_knownEntityKeys.Contains(key)) 967if (associationSetMetadata.RequiredEnds.Contains(endMetadata)) 975else if (associationSetMetadata.OptionalEnds.Contains(endMetadata)) 980else if (associationSetMetadata.IncludedValueEnds.Contains(endMetadata))
System\Data\Mapping\Update\Internal\ViewLoader.cs (2)
120return SyncInitializeEntitySet(entitySetBase, workspace, set.Contains, element); 379if (columns.Contains(scalarPropertyMapping.ColumnProperty))
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (1)
188if (commonGrandChildren.Contains(grandChild) == false)
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlIdentifiers.cs (2)
73if (m_identifiers.Contains(result.ToLower(CultureInfo.InvariantCulture)) == false) 89if (m_identifiers.Contains(result.ToLower(CultureInfo.InvariantCulture)) == false)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (1)
1255false == domainConstraint.Variable.Domain.All(constant => domainConstraint.Range.Contains(constant))
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (1)
244return m_domain.Contains(constant);
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (3)
101if (!domainValues.Contains(Constant.Null)) 120if (domainValues.Count <= 0 || (!domainValues.Contains(Constant.Null) && condition.Domain.Values.Contains(Constant.Null))) 165return m_projectedConditionMembers.Contains(memberPath);
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (1)
230Debug.Assert(constants.Contains(constant), "Domain of negated constant does not have positive constant");
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (5)
58return m_negatedDomain.Contains(constant); 74return m_negatedDomain.Count == 1 && m_negatedDomain.Contains(Constant.Null); 88return m_negatedDomain.Contains(Constant.Null); 181Debug.Assert(negatedConstants.Contains(constant), "Negated constant must contain all positive constants"); 192bool hasNull = negatedConstants.Contains(Constant.Null);
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (2)
291if (domainValues.Contains(Constant.Null)) 299if (domainValues.Contains(Constant.Undefined))
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
210!mappedConditionMembers.Contains(memberPath) && /* prevents duplicate errors */ 258if (setOfconditions.Contains(condMembersValues))
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
244if (mappedExtents.Contains(extent) == false
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (4)
922if (!_datepartKeywords.Contains(datepart)) 1763if (!_functionRequiresReturnTypeCastToInt32.Contains(e.Function.FullName)) 1771if (_maxTypeNames.Contains(storeType.EdmType.Name)) 1811if (!functionsRequiringReturnTypeCast.Contains(e.Function.FullName))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (5)
838if (_canonicalStringFunctionsOneArg.Contains(functionFullName) || 839_storeStringFunctionsOneArg.Contains(functionFullName)) 843else if (_canonicalStringFunctionsTwoArgs.Contains(functionFullName)) 848else if (_canonicalStringFunctionsThreeArgs.Contains(functionFullName) || 849_storeStringFunctionsThreeArgs.Contains(functionFullName))