1 type derived from Set
System.Data.Entity (1)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
414private class CellConstantSetInfo : CellConstantSet
124 instantiations of Set
System.Data.Entity (124)
System\Data\Common\Utils\Boolean\BoolExpr.cs (1)
337_children = new Set<BoolExpr<T_Identifier>>(children);
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
172range = new Set<T_Element>(domainVariable.Domain.Comparer);
System\Data\Common\Utils\Boolean\Converter.cs (6)
104var emptyClauseSet = new Set<DnfClause<T_Identifier>>(); 112var emptyClauseSet = new Set<CnfClause<T_Identifier>>(); 121Set<DnfClause<T_Identifier>> dnfClauses = new Set<DnfClause<T_Identifier>>(); 122Set<CnfClause<T_Identifier>> cnfClauses = new Set<CnfClause<T_Identifier>>(); 123Set<Literal<T_Identifier>> path = new Set<Literal<T_Identifier>>(); 145var clause = new CnfClause<T_Identifier>(new Set<Literal<T_Identifier>>(path.Select(l => l.MakeNegated())));
System\Data\Common\Utils\Boolean\DomainConstraint.cs (1)
109: this(variable, new Set<T_Element>(new T_Element[] { element }).MakeReadOnly())
System\Data\Common\Utils\Helpers.cs (2)
45Set<Type> set1 = new Set<Type>(list1, comparer); 46Set<Type> set2 = new Set<Type>(list2, comparer);
System\Data\Common\Utils\MetadataHelper.cs (2)
490references = new Set<EntityType>(); 748Set<EdmMember> result = new Set<EdmMember>();
System\Data\Common\Utils\Set.cs (4)
33internal static readonly Set<TElement> Empty = new Set<TElement>().MakeReadOnly(); 218Set<TElement> copy = new Set<TElement>(this); 240Set<TElement> copy = new Set<TElement>(this); 267Set<TElement> copy = new Set<TElement>(this);
System\Data\EntityClient\EntityCommandDefinition.cs (1)
122_entitySets = new Set<EntitySet>();
System\Data\Mapping\FunctionImportMapping.cs (4)
129var impliedEntityTypesSet = new Set<EntityType>(entityTypeMapping.GetMappedEntityTypes(m_itemCollection)); 300discriminatorDomains[i] = new Set<ValueCondition>(); 400var reachableTypes = new Set<EntityType>(); 467var reachableTypes = new Set<EntityType>();
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
460result.CellGroups = cellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new Cell(cell)))).ToList();
System\Data\Mapping\StorageMappingItemLoader.cs (13)
467Set<AssociationSetEnd> expectedEnds = new Set<AssociationSetEnd>( 505Set<AssociationSetEnd> actualEnds = new Set<AssociationSetEnd>(functionMapping.CollocatedAssociationSetEnds); 561Set<EntitySetBase> associationSets = new Set<EntitySetBase>(); 645Set<EntitySetBase> implicitMappedAssociationSets = new Set<EntitySetBase>(); 753Set<EntitySetBase> setsWithQueryViews = new Set<EntitySetBase>(); 754Set<EntitySetBase> setsRequiringQueryViews = new Set<EntitySetBase>(); 893Set<EdmType> functionMappedTypes = new Set<EdmType>(); 900Set<EdmType> unmappedTypes = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(setMapping.Set.ElementType, EdmItemCollection, false /*includeAbstractTypes*/)); 904Set<EdmType> abstractTypes = new Set<EdmType>(); 935isOfTypeEntityTypes = new Set<EntityType>(); 936entityTypes = new Set<EntityType>(); 3761m_seenParameters = new Set<FunctionParameter>(); 3891Set<FunctionParameter> unmappedParameters = new Set<FunctionParameter>(m_function.Parameters);
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (2)
115RequiredEnds = new Set<AssociationEndMember>(requiredEnds); 126set = new Set<AssociationEndMember>();
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (3)
58keyMembers = new Set<EdmMember>(((RowType)type).Properties).MakeReadOnly(); 63keyMembers = new Set<EdmMember>(entityType.KeyMembers).MakeReadOnly(); 64foreignKeyMembers = new Set<EdmMember>(((EntitySet)entitySetBase).ForeignKeyDependents
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (1)
106Set<CompositeKey> keys = new Set<CompositeKey>(compiler.m_translator.KeyComparer);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (4)
57m_knownEntityKeys = new Set<EntityKey>(); 59m_optionalEntities = new Set<EntityKey>(); 60m_includedValueEntities = new Set<EntityKey>(); 640Set<EntitySet> tables = new Set<EntitySet>();
System\Data\Mapping\Update\Internal\ViewLoader.cs (4)
44private readonly Set<EdmMember> m_serverGenProperties = new Set<EdmMember>(); 45private readonly Set<EdmMember> m_isNullConditionProperties = new Set<EdmMember>(); 174Set<EntitySet> affectedTables = new Set<EntitySet>(); 179Set<EdmMember> isNullConditionColumns = new Set<EdmMember>();
System\Data\Mapping\ViewGeneration\CellCreator.cs (4)
98var sSideMembersToBeExpanded = new Set<MemberPath>(); 130cSidePaths = new Set<MemberPath>(); 284Set<EdmType> allTypes = new Set<EdmType>(); 410Set<EdmType> allTypes = new Set<EdmType>();
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (1)
129CellGroup component = new CellGroup(cellsInComponent);
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (1)
250Set<LeafCellTreeNode> nodeChildrenSet = new Set<LeafCellTreeNode>(LeafCellTreeNode.EqualityComparer);
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlIdentifiers.cs (1)
27m_identifiers = new Set<string>(StringComparer.Ordinal);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (1)
132new Set<Constant>(new Constant[] { value }, Constant.EqualityComparer));
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
285Set<Constant> newDomain = new Set<Constant>(_domainMap.GetDomain(currentPath), Constant.EqualityComparer); 1258return new Set<MemberPath>(memberVariables, MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (2)
303Set<Constant> allowedValues = new Set<Constant>(Constant.EqualityComparer); 336Set<Constant> allowedValues = new Set<Constant>(Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (4)
43Set<Constant> domainSet = new Set<Constant>(domain, Constant.EqualityComparer); 44Set<Constant> rangeSet = new Set<Constant>(range, Constant.EqualityComparer); 184Set<Constant> variableDomain = new Set<Constant>(possibleValues, Constant.EqualityComparer).MakeReadOnly(); 185Set<Constant> thisDomain = new Set<Constant>(actualValues, Constant.EqualityComparer).MakeReadOnly();
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (1)
132Set<EdmProperty> cSideMembers = new Set<EdmProperty>();
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
440AttributeSet attributes = new AttributeSet(MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (11)
70m_domain = new Set<Constant>(domain.m_domain, Constant.EqualityComparer); 71m_possibleValues = new Set<Constant>(domain.m_possibleValues, Constant.EqualityComparer); 142domain = new Set<Constant>(CreateList(true, false), Constant.EqualityComparer); 147domain = new Set<Constant>(Constant.EqualityComparer); 170domain = new Set<Constant>(types, Constant.EqualityComparer); 267CellConstantSet result = new Set<Constant>(Constant.EqualityComparer); 306CellConstantSet result = new CellConstantSet(Constant.EqualityComparer); 470.Select(restriction => new CellConstantSet(restriction.Domain.Values, Constant.EqualityComparer)); 477result = new CellConstantSet(domain); 493result = new CellConstantSet(restrictedDomain.Values, Constant.EqualityComparer); 531CellConstantSet union = new CellConstantSet(domain1, Constant.EqualityComparer).Union(domain2);
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (2)
206Set<EntitySetBase> extents = new Set<EntitySetBase>(EqualityComparer<EntitySetBase>.Default); 273Set<AssociationEndMember> result = new Set<AssociationEndMember>(EqualityComparer<AssociationEndMember>.Default);
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (4)
46private Set<MemberPath> m_projectedConditionMembers = new Set<MemberPath>(); 175var domainMap = m_conditionDomainMap.ToDictionary(p => p.Key, p => new Set<Constant>(p.Value, Constant.EqualityComparer)); 184var domainMap = m_conditionDomainMap.ToDictionary(p => p.Key, p => new Set<Constant>(p.Value, Constant.EqualityComparer)); 391possibleValues = new CellConstantSet(Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (4)
225constants = new Set<Constant>(negatedConstant.Elements, Constant.EqualityComparer); 237constants = new Set<Constant>(Domain.Values, Constant.EqualityComparer); 315Set<EdmType> allTypes = new Set<EdmType>(); 325Set<EdmType> oneOfTypes = new Set<EdmType>();
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (2)
34m_negatedDomain = new Set<Constant>(values, Constant.EqualityComparer); 177Set<Constant> negatedConstants = new Set<Constant>(this.Elements, Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (1)
36m_attrs = new AttributeSet(MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (1)
288Set<Constant> domainValues = new Set<Constant>(this.Domain.Values, Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (1)
97Set<MemberPath> associationKeyMembers = new Set<MemberPath>(MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (6)
89Set<EdmType> unmapepdTypesInExtent = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(m_viewgenContext.Extent.ElementType, m_viewgenContext.EdmItemCollection, false /*isAbstract*/)); 186Set<MemberPath> mappedConditionMembers = new Set<MemberPath>(); 189Set<CompositeCondition> setOfconditions = new Set<CompositeCondition>(new ConditionComparer()); 247values = new Set<Constant>(Constant.EqualityComparer); 784Set<MemberPath> keysOfOne = new Set<MemberPath>(one.Keys, MemberPath.EqualityComparer); 785Set<MemberPath> keysOfTwo = new Set<MemberPath>(two.Keys, MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (6)
241Set<LeftCellWrapper> allWrappers = new Set<LeftCellWrapper>(pNode.GetLeaves()); 337new Set<LeftCellWrapper>(parentWrappers); 386var childRefPropertiesCollection = childPropertiesSet.Where(it => it.SetEquals(new Set<EdmProperty>(refConstraint.ToProperties))); 387var parentRefPropertiesCollection = parentPropertiesSet.Where(it => it.SetEquals(new Set<EdmProperty>(refConstraint.FromProperties))); 412var propertyIndexes = new Set<int>(); 557Set<EdmProperty> keyMembers = new Set<EdmProperty>(propertyList).MakeReadOnly();
System\Data\Mapping\ViewGeneration\Validation\KeyConstraint.cs (1)
29m_keySlots = new Set<TSlot>(keySlots, comparer).MakeReadOnly();
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (1)
61Set<ViewCellSlot> secondKeySlots = new Set<ViewCellSlot>(second.KeySlots);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (2)
253Set<MemberPath> tokenPaths = new Set<MemberPath>(MemberPath.EqualityComparer); 269Set<MemberPath> conditionMembers = new Set<MemberPath>(
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (2)
96List<CellGroup> cellGroups = cellGroups = result.CellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new Cell(cell)))).ToList(); 225Set<EntitySetBase> mappedExtents = new Set<EntitySetBase>();
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
244return new Common.Utils.Set<md.EntitySet>(m_entitySetIdToEntitySetMap).MakeReadOnly();
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (6)
49static private readonly Set<string> _datepartKeywords = new Set<string>(new string[] { "year", "yy", "yyyy", 65static private readonly Set<string> _functionRequiresReturnTypeCastToInt64 = new Set<string>(new string[] { "SqlServer.CHARINDEX" }, 67static private readonly Set<string> _functionRequiresReturnTypeCastToInt32 = new Set<string>(new string[] { "SqlServer.LEN" , 74static private readonly Set<string> _functionRequiresReturnTypeCastToInt16 = new Set<string>(new string[] { "Edm.Abs" }, 76static private readonly Set<string> _functionRequiresReturnTypeCastToSingle = new Set<string>(new string[] { "Edm.Abs" , 81static private readonly Set<string> _maxTypeNames = new Set<string>(new string[] { "varchar(max)" ,
System\Data\SqlClient\SqlGen\SqlGenerator.cs (5)
301static private readonly Set<string> _canonicalStringFunctionsOneArg = new Set<string>(new string[] { "Edm.Trim" , 312static private readonly Set<string> _canonicalStringFunctionsTwoArgs = new Set<string>(new string[] { "Edm.Concat" }, 315static private readonly Set<string> _canonicalStringFunctionsThreeArgs = new Set<string>(new string[] { "Edm.Replace" }, 318static private readonly Set<string> _storeStringFunctionsOneArg = new Set<string>(new string[] { "SqlServer.RTRIM" , 328static private readonly Set<string> _storeStringFunctionsThreeArgs = new Set<string>(new string[] { "SqlServer.REPLACE" },
323 references to Set
System.Data.Entity (323)
System\Data\Common\Utils\Boolean\BoolExpr.cs (2)
326private readonly Set<BoolExpr<T_Identifier>> _children; 345internal Set<BoolExpr<T_Identifier>> Children { get { return _children; } }
System\Data\Common\Utils\Boolean\Clause.cs (6)
26private readonly Set<Literal<T_Identifier>> _literals; 34protected Clause(Set<Literal<T_Identifier>> literals, ExprType treeType) 44internal Set<Literal<T_Identifier>> Literals 50private static BoolExpr<T_Identifier> ConvertLiteralsToExpr(Set<Literal<T_Identifier>> literals, ExprType treeType) 115internal DnfClause(Set<Literal<T_Identifier>> literals) 148internal CnfClause(Set<Literal<T_Identifier>> literals)
System\Data\Common\Utils\Boolean\ConversionContext.cs (6)
124var range = term.Identifier.Range; 126var domain = domainVariable.Domain; 164Dictionary<Vertex, Set<T_Element>> vertexToRange = new Dictionary<Vertex, Set<T_Element>>(); 169Set<T_Element> range; 181var range = vertexRange.Value;
System\Data\Common\Utils\Boolean\Converter.cs (12)
101_cnf = new CnfSentence<T_Identifier>(Set<CnfClause<T_Identifier>>.Empty); 103var emptyClause = new DnfClause<T_Identifier>(Set<Literal<T_Identifier>>.Empty); 104var emptyClauseSet = new Set<DnfClause<T_Identifier>>(); 111var emptyClause = new CnfClause<T_Identifier>(Set<Literal<T_Identifier>>.Empty); 112var emptyClauseSet = new Set<CnfClause<T_Identifier>>(); 116_dnf = new DnfSentence<T_Identifier>(Set<DnfClause<T_Identifier>>.Empty); 121Set<DnfClause<T_Identifier>> dnfClauses = new Set<DnfClause<T_Identifier>>(); 122Set<CnfClause<T_Identifier>> cnfClauses = new Set<CnfClause<T_Identifier>>(); 123Set<Literal<T_Identifier>> path = new Set<Literal<T_Identifier>>(); 133private void FindAllPaths(Vertex vertex, Set<CnfClause<T_Identifier>> cnfClauses, Set<DnfClause<T_Identifier>> dnfClauses, 134Set<Literal<T_Identifier>> path)
System\Data\Common\Utils\Boolean\DomainConstraint.cs (7)
26private readonly Set<T_Element> _domain; 36internal DomainVariable(T_Variable identifier, Set<T_Element> domain, IEqualityComparer<T_Variable> identifierComparer) 46internal DomainVariable(T_Variable identifier, Set<T_Element> domain) : this(identifier, domain, null) { } 56internal Set<T_Element> Domain { get { return _domain; } } 89private readonly Set<T_Element> _range; 97internal DomainConstraint(DomainVariable<T_Variable, T_Element> variable, Set<T_Element> range) 121internal Set<T_Element> Range { get { return _range; } }
System\Data\Common\Utils\Boolean\Sentence.cs (5)
63private readonly Set<T_Clause> _clauses; 72protected Sentence(Set<T_Clause> clauses, ExprType treeType) 80private static BoolExpr<T_Identifier> ConvertClausesToExpr(Set<T_Clause> clauses, ExprType treeType) 128internal DnfSentence(Set<DnfClause<T_Identifier>> clauses) 155internal CnfSentence(Set<CnfClause<T_Identifier>> clauses)
System\Data\Common\Utils\Helpers.cs (2)
45Set<Type> set1 = new Set<Type>(list1, comparer); 46Set<Type> set2 = new Set<Type>(list2, comparer);
System\Data\Common\Utils\MetadataHelper.cs (7)
433internal static Dictionary<EntityType, Set<EntityType>> BuildUndirectedGraphOfTypes(EdmItemCollection edmItemCollection) 435Dictionary<EntityType, Set<EntityType>> graph = new Dictionary<EntityType, Set<EntityType>>(); 481private static void AddDirectedEdgeBetweenEntityTypes(Dictionary<EntityType, Set<EntityType>> graph, EntityType a, EntityType b) 483Set<EntityType> references; 746internal static Set<EdmMember> GetConcurrencyMembersForTypeHierarchy(EntityTypeBase superType, EdmItemCollection edmItemCollection) 748Set<EdmMember> result = new Set<EdmMember>();
System\Data\Common\Utils\Set.cs (21)
27internal static readonly IEqualityComparer<Set<TElement>> ValueComparer = 33internal static readonly Set<TElement> Empty = new Set<TElement>().MakeReadOnly(); 43internal Set(Set<TElement> other) 174internal bool SetEquals(Set<TElement> other) 185internal bool IsSubsetOf(Set<TElement> other) 195internal bool Overlaps(Set<TElement> other) 216internal Set<TElement> Difference(IEnumerable<TElement> other) 218Set<TElement> copy = new Set<TElement>(this); 238internal Set<TElement> Union(IEnumerable<TElement> other) 240Set<TElement> copy = new Set<TElement>(this); 250internal void Intersect(Set<TElement> other) 260internal Set<TElement> AsReadOnly() 267Set<TElement> copy = new Set<TElement>(this); 275internal Set<TElement> MakeReadOnly() 310private void AssertSetCompatible(Set<TElement> other) 366private class SetValueComparer : IEqualityComparer<Set<TElement>> 368bool IEqualityComparer<Set<TElement>>.Equals(Set<TElement> x, Set<TElement> y) 374int IEqualityComparer<Set<TElement>>.GetHashCode(Set<TElement> obj)
System\Data\EntityClient\EntityCommandDefinition.cs (2)
51private readonly Set<EntitySet> _entitySets; 316internal Set<EntitySet> EntitySets {
System\Data\Mapping\FunctionImportMapping.cs (8)
129var impliedEntityTypesSet = new Set<EntityType>(entityTypeMapping.GetMappedEntityTypes(m_itemCollection)); 287Set<EntityType> reachableTypes = validateAmbiguity ? 297var discriminatorDomains = new Set<ValueCondition>[this.DiscriminatorColumns.Count]; 372private Set<EntityType> FindReachableTypes(DomainConstraintConversionContext<string, ValueCondition> converter, Vertex[] mappingConditions) 400var reachableTypes = new Set<EntityType>(); 423private Set<EntityType> FindUnambiguouslyReachableTypes(DomainConstraintConversionContext<string, ValueCondition> converter, Vertex[] mappingConditions) 467var reachableTypes = new Set<EntityType>(); 479private void CollectUnreachableTypes(Set<EntityType> reachableTypes, out KeyToListMap<EntityType, LineInfo> entityTypes, out KeyToListMap<EntityType, LineInfo> isTypeOfEntityTypes)
System\Data\Mapping\StorageEntityContainerMapping.cs (3)
24using CellGroup = Set<Cell>; 457List<CellGroup> cellGroups = partitioner.GroupRelatedCells(); 549internal List<CellGroup> CellGroups;
System\Data\Mapping\StorageMappingItemLoader.cs (22)
467Set<AssociationSetEnd> expectedEnds = new Set<AssociationSetEnd>( 500Set<AssociationSetEnd> expectedEnds, string elementName) 505Set<AssociationSetEnd> actualEnds = new Set<AssociationSetEnd>(functionMapping.CollocatedAssociationSetEnds); 561Set<EntitySetBase> associationSets = new Set<EntitySetBase>(); 645Set<EntitySetBase> implicitMappedAssociationSets = new Set<EntitySetBase>(); 675private static void ValidateClosureAmongSets(StorageEntityContainerMapping entityContainerMapping, Set<EntitySetBase> sets, Set<EntitySetBase> additionalSetsInClosure) 753Set<EntitySetBase> setsWithQueryViews = new Set<EntitySetBase>(); 754Set<EntitySetBase> setsRequiringQueryViews = new Set<EntitySetBase>(); 893Set<EdmType> functionMappedTypes = new Set<EdmType>(); 900Set<EdmType> unmappedTypes = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(setMapping.Set.ElementType, EdmItemCollection, false /*includeAbstractTypes*/)); 904Set<EdmType> abstractTypes = new Set<EdmType>(); 929out Set<EntityType> isOfTypeEntityTypes, 930out Set<EntityType> entityTypes) 1038Set<EntityType> entityTypes; 1039Set<EntityType> isOfTypeEntityTypes; 1298Set<EntityType> entityTypes; 1299Set<EntityType> isOfTypeEntityTypes; 1972Set<EntityType> isOfTypeEntityTypes; 1973Set<EntityType> entityTypes; 3736private readonly Set<FunctionParameter> m_seenParameters; 3891Set<FunctionParameter> unmappedParameters = new Set<FunctionParameter>(m_function.Parameters);
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (7)
28internal readonly Set<AssociationEndMember> RequiredEnds; 34internal readonly Set<AssociationEndMember> OptionalEnds; 39internal readonly Set<AssociationEndMember> IncludedValueEnds; 51internal AssociationSetMetadata(Set<EntitySet> affectedTables, AssociationSet associationSet, MetadataWorkspace workspace) 122static private void AddEnd(ref Set<AssociationEndMember> set, AssociationEndMember element) 131static private void FixSet(ref Set<AssociationEndMember> set) 135set = Set<AssociationEndMember>.Empty;
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (5)
50Set<EdmMember> keyMembers; 51Set<EdmMember> foreignKeyMembers; 59foreignKeyMembers = Set<EdmMember>.Empty; 68keyMembers = Set<EdmMember>.Empty; 69foreignKeyMembers = Set<EdmMember>.Empty;
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (2)
106Set<CompositeKey> keys = new Set<CompositeKey>(compiler.m_translator.KeyComparer); 179private Dictionary<CompositeKey, PropagatorResult> ProcessKeys(UpdateCompiler compiler, List<PropagatorResult> changes, Set<CompositeKey> keys)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (6)
90private readonly Set<EntityKey> m_knownEntityKeys; 92private readonly Set<EntityKey> m_optionalEntities; 93private readonly Set<EntityKey> m_includedValueEntities; 640Set<EntitySet> tables = new Set<EntitySet>(); 644Set<EntitySet> affectedTables = m_viewLoader.GetAffectedTables(extent, m_metadataWorkspace); 1008private void AddValidAncillaryKey(EntityKey key, Set<EntityKey> keySet)
System\Data\Mapping\Update\Internal\ViewLoader.cs (9)
43private readonly Dictionary<EntitySetBase, Set<EntitySet>> m_affectedTables = new Dictionary<EntitySetBase, Set<EntitySet>>(); 44private readonly Set<EdmMember> m_serverGenProperties = new Set<EdmMember>(); 45private readonly Set<EdmMember> m_isNullConditionProperties = new Set<EdmMember>(); 70internal Set<EntitySet> GetAffectedTables(EntitySetBase extent, MetadataWorkspace workspace) 118private bool SyncContains<T_Element>(EntitySetBase entitySetBase, MetadataWorkspace workspace, Set<T_Element> set, T_Element element) 174Set<EntitySet> affectedTables = new Set<EntitySet>(); 179Set<EdmMember> isNullConditionColumns = new Set<EdmMember>(); 374private static IEnumerable<EdmMember> FindPropertiesMappedToColumns(Set<EdmMember> columns, StorageMappingFragment mappingFragment)
System\Data\Mapping\ViewGeneration\CellCreator.cs (7)
98var sSideMembersToBeExpanded = new Set<MemberPath>(); 120var cSideMembersForSSideExpansionCandidates = new Dictionary<MemberPath, Set<MemberPath>>(); 127Set<MemberPath> cSidePaths = null; 146var mappedCSideMembers = cSideMembersForSSideExpansionCandidates[memberToExpand]; 284Set<EdmType> allTypes = new Set<EdmType>(); 319Set<EdmType> allTypes, List<Cell> cells) 410Set<EdmType> allTypes = new Set<EdmType>();
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (7)
23using CellGroup = Set<Cell>; 50internal List<CellGroup> GroupRelatedCells() 94List<CellGroup> result = GenerateConnectedComponents(graph); 120private static List<CellGroup> GenerateConnectedComponents(UndirectedGraph<Cell> graph) 125List<CellGroup> result = new List<CellGroup>(); 129CellGroup component = new CellGroup(cellsInComponent);
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (4)
162Set<LeafCellTreeNode> commonGrandChildren = GetCommonGrandChildren(children); 220private static Set<LeafCellTreeNode> GetCommonGrandChildren(List<CellTreeNode> nodes) 222Set<LeafCellTreeNode> commonLeaves = null; 250Set<LeafCellTreeNode> nodeChildrenSet = new Set<LeafCellTreeNode>(LeafCellTreeNode.EqualityComparer);
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlIdentifiers.cs (1)
32private Set<string> m_identifiers;
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (3)
285Set<Constant> newDomain = new Set<Constant>(_domainMap.GetDomain(currentPath), Constant.EqualityComparer); 1017Set<MemberPath> connectedVariables = GetVariables(query); 1250private Set<MemberPath> GetVariables(FragmentQuery query)
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (3)
303Set<Constant> allowedValues = new Set<Constant>(Constant.EqualityComparer); 336Set<Constant> allowedValues = new Set<Constant>(Constant.EqualityComparer); 431Set<Constant> range = expression.Identifier.Range;
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (8)
43Set<Constant> domainSet = new Set<Constant>(domain, Constant.EqualityComparer); 44Set<Constant> rangeSet = new Set<Constant>(range, Constant.EqualityComparer); 51internal static DomainTermExpr MakeTermExpression(BoolLiteral literal, Set<Constant> domain, Set<Constant> range) 67internal abstract DomainBoolExpr FixRange(Set<Constant> range, MemberDomainMap memberDomainMap); 184Set<Constant> variableDomain = new Set<Constant>(possibleValues, Constant.EqualityComparer).MakeReadOnly(); 185Set<Constant> thisDomain = new Set<Constant>(actualValues, Constant.EqualityComparer).MakeReadOnly(); 191internal override DomainBoolExpr FixRange(Set<Constant> range, MemberDomainMap memberDomainMap)
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (2)
120internal Set<EdmProperty> GetCSlotsForTableColumns(IEnumerable<MemberPath> columns) 132Set<EdmProperty> cSideMembers = new Set<EdmProperty>();
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (3)
24using AttributeSet = Set<MemberPath>; 438internal AttributeSet GetNonNullSlots() 440AttributeSet attributes = new AttributeSet(MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\CellTreeNode.cs (1)
65internal abstract Set<MemberPath> Attributes { get; }
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (1)
87internal static void ConstantsToUserString(StringBuilder builder, Set<Constant> constants)
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (33)
21using CellConstantSet = Set<Constant>; 78private CellConstantSet m_domain; // e.g., 1, 2, NULL, NOT(1, 2, NULL) 79private CellConstantSet m_possibleValues; // e.g., 1, 2, NULL, Undefined 92private Set<Constant> AllPossibleValuesInternal 118internal static CellConstantSet DeriveDomainFromMemberPath(MemberPath memberPath, EdmItemCollection edmItemCollection, bool leaveDomainUnbounded) 120CellConstantSet domain = DeriveDomainFromType(memberPath.EdmType, edmItemCollection, leaveDomainUnbounded); 130private static CellConstantSet DeriveDomainFromType(EdmType type, EdmItemCollection edmItemCollection, bool leaveDomainUnbounded) 132CellConstantSet domain = null; 253internal static CellConstantSet ExpandNegationsInDomain(IEnumerable<Constant> domain, IEnumerable<Constant> otherPossibleValues) 257CellConstantSet possibleValues = DeterminePossibleValues(domain, otherPossibleValues); 267CellConstantSet result = new Set<Constant>(Constant.EqualityComparer); 278CellConstantSet remainingElements = possibleValues.Difference(negated.Elements); 290internal static CellConstantSet ExpandNegationsInDomain(IEnumerable<Constant> domain) 298static CellConstantSet DeterminePossibleValues(IEnumerable<Constant> domain) 306CellConstantSet result = new CellConstantSet(Constant.EqualityComparer); 337internal static Dictionary<MemberPath, CellConstantSet> 341Dictionary<MemberPath, CellConstantSet> cDomainMap = 342new Dictionary<MemberPath, CellConstantSet>(MemberPath.EqualityComparer); 353CellConstantSet cDomain = DeriveDomainFromMemberPath(slot.MemberPath, edmItemCollection, isValidationEnabled); 357CellConstantSet values; 373private static bool GetRestrictedOrUnrestrictedDomain(MemberProjectedSlot slot, CellQuery cellQuery, EdmItemCollection edmItemCollection, out CellConstantSet domain) 375CellConstantSet domainValues = DeriveDomainFromMemberPath(slot.MemberPath, edmItemCollection, true /* leaveDomainUnbounded */); 388internal static Dictionary<MemberPath, CellConstantSet> 392Dictionary<MemberPath, CellConstantSet> updateDomainMap = new Dictionary<MemberPath, CellConstantSet>(MemberPath.EqualityComparer); 406CellConstantSet restrictedDomain; 445CellConstantSet sSlotDomain; 465private static bool TryGetDomainRestrictedByWhereClause(IEnumerable<Constant> domain, MemberProjectedSlot slot, CellQuery cellQuery, out CellConstantSet result) 484CellConstantSet possibleValues = DeterminePossibleValues(conditionsForSlot.SelectMany(m => m.Select(c => c)), domain); 487foreach (var conditionValues in conditionsForSlot) 529private static CellConstantSet DeterminePossibleValues(IEnumerable<Constant> domain1, IEnumerable<Constant> domain2) 531CellConstantSet union = new CellConstantSet(domain1, Constant.EqualityComparer).Union(domain2); 532CellConstantSet result = DeterminePossibleValues(union);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
81internal override Set<MemberPath> Attributes { get { return m_cellWrapper.Attributes; } }
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (8)
45private Set<MemberPath> m_attributes;// project: attributes computed by 67internal LeftCellWrapper(ViewTarget viewTarget, Set<MemberPath> attrs, 80internal LeftCellWrapper(ViewTarget viewTarget, Set<MemberPath> attrs, 97internal Set<MemberPath> Attributes 192Set<AssociationEndMember> ends = GetEndsForTablePrimaryKey(); 206Set<EntitySetBase> extents = new Set<EntitySetBase>(EqualityComparer<EntitySetBase>.Default); 270private Set<AssociationEndMember> GetEndsForTablePrimaryKey() 273Set<AssociationEndMember> result = new Set<AssociationEndMember>(EqualityComparer<AssociationEndMember>.Default);
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (28)
19using CellConstantSet = Common.Utils.Set<Constant>; 36private Dictionary<MemberPath, CellConstantSet> m_conditionDomainMap; 39private Dictionary<MemberPath, CellConstantSet> m_nonConditionDomainMap; 46private Set<MemberPath> m_projectedConditionMembers = new Set<MemberPath>(); 54private MemberDomainMap(Dictionary<MemberPath, CellConstantSet> domainMap, 55Dictionary<MemberPath, CellConstantSet> nonConditionDomainMap, EdmItemCollection edmItemCollection) 64internal MemberDomainMap(ViewTarget viewTarget, bool isValidationEnabled, IEnumerable<Cell> extentCells, EdmItemCollection edmItemCollection, ConfigViewGenerator config, Dictionary<EntityType, Set<EntityType>> inheritanceGraph) 66m_conditionDomainMap = new Dictionary<MemberPath, CellConstantSet>(MemberPath.EqualityComparer); 69Dictionary<MemberPath, CellConstantSet> domainMap = null; 94CellConstantSet domainValues; 136m_nonConditionDomainMap = new Dictionary<MemberPath, CellConstantSet>(MemberPath.EqualityComparer); 147CellConstantSet memberSet = Domain.DeriveDomainFromMemberPath(member, m_edmItemCollection, true /* Regardless of validation, leave the domain unbounded because this is not a condition member */); 196private void ExpandDomainsIfNeeded(Dictionary<MemberPath, CellConstantSet> domainMapForMembers) 203CellConstantSet possibleValues = domainMapForMembers[path]; 211Set<Constant> completeDomain = Domain.DeriveDomainFromMemberPath(path, m_edmItemCollection, true /* leaveDomainUnbounded */); 236private static void ReduceEnumerableDomainToEnumeratedValues(ViewTarget target, Dictionary<MemberPath, CellConstantSet> domainMap, ConfigViewGenerator config, 245CellConstantSet domain = Domain.DeriveDomainFromMemberPath(member, edmItemCollection, true /* leaveDomainUnbounded */); 246CellConstantSet extra = domainMap[member].Difference(domain); 283CellConstantSet cDomain = queryDomainMap.GetDomainInternal(cPath); 284CellConstantSet sDomain = updateDomainMap.GetDomainInternal(sPath); 302private static void ExpandNegationsInDomainMap(Dictionary<MemberPath, Set<Constant>> domainMap) 344CellConstantSet set = GetDomainInternal(path); 353CellConstantSet set = GetDomainInternal(path); 364private CellConstantSet GetDomainInternal(MemberPath path) 366CellConstantSet result; 379Set<Constant> oldDomain = m_conditionDomainMap[path]; 388CellConstantSet possibleValues; 416internal CellConstantSetInfo(Set<Constant> iconstants, MemberProjectedSlot islot)
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (3)
258internal bool IsAlwaysDefined(Dictionary<EntityType, Set<EntityType>> inheritanceGraph) 311private static bool RecurseToFindMemberAbsentInConcreteType(EntityType current, EntityType avoidEdge, EdmMember member, EntityType entitySetType, Dictionary<EntityType, Set<EntityType>> inheritanceGraph) 313Set<EntityType> edges = inheritanceGraph[current];
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (4)
218Set<Constant> constants; 310private void InvertOutputStringForTypeConstant(StringBuilder builder, Set<Constant> constants, MetadataWorkspace workspace) 315Set<EdmType> allTypes = new Set<EdmType>(); 325Set<EdmType> oneOfTypes = new Set<EdmType>();
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (2)
42private readonly Set<Constant> m_negatedDomain; 177Set<Constant> negatedConstants = new Set<Constant>(this.Elements, Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (3)
24using AttributeSet = Set<MemberPath>; 58private Set<MemberPath> m_attrs; // attributes from whole subtree below 106internal override Set<MemberPath> Attributes { get { return m_attrs; } }
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (3)
60internal override DomainBoolExpr FixRange(Set<Constant> range, MemberDomainMap memberDomainMap) 261Action<Set<Constant>> varInDomain, 288Set<Constant> domainValues = new Set<Constant>(this.Domain.Values, Constant.EqualityComparer);
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (1)
59internal override DomainBoolExpr FixRange(Set<Constant> range, MemberDomainMap memberDomainMap)
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (1)
97Set<MemberPath> associationKeyMembers = new Set<MemberPath>(MemberPath.EqualityComparer);
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (14)
23using CompositeCondition = Dictionary<MemberPath, Set<Constant>>; 89Set<EdmType> unmapepdTypesInExtent = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(m_viewgenContext.Extent.ElementType, m_viewgenContext.EdmItemCollection, false /*isAbstract*/)); 186Set<MemberPath> mappedConditionMembers = new Set<MemberPath>(); 189Set<CompositeCondition> setOfconditions = new Set<CompositeCondition>(new ConditionComparer()); 243Set<Constant> values; 637private void CheckThatConditionMemberIsNotMapped(MemberPath conditionMember, List<LeftCellWrapper> mappingFragments, Set<MemberPath> mappedConditionMembers) 780class ConditionComparer : IEqualityComparer<Dictionary<MemberPath, Set<Constant>>> 782public bool Equals(Dictionary<MemberPath, Set<Constant>> one, Dictionary<MemberPath, Set<Constant>> two) 784Set<MemberPath> keysOfOne = new Set<MemberPath>(one.Keys, MemberPath.EqualityComparer); 785Set<MemberPath> keysOfTwo = new Set<MemberPath>(two.Keys, MemberPath.EqualityComparer); 794Set<Constant> constantsOfOne = one[member]; 795Set<Constant> constantsOfTwo = two[member]; 805public int GetHashCode(Dictionary<MemberPath, Set<Constant>> obj)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (17)
132internal void CheckConstraint(Set<Cell> cells, QueryRewriter childRewriter, QueryRewriter parentRewriter, 241Set<LeftCellWrapper> allWrappers = new Set<LeftCellWrapper>(pNode.GetLeaves()); 336Set<LeftCellWrapper> bothExtentWrappers = 345Set<Cell> cells, ErrorLog errorLog) 352var childPropertiesSet = new List<Set<EdmProperty>>(); 353var parentPropertiesSet = new List<Set<EdmProperty>>(); 358var childProperties = cell.GetCSlotsForTableColumns(ChildColumns); 363var parentProperties = cell.GetCSlotsForTableColumns(ParentColumns); 390foreach (var parentRefProperties in parentRefPropertiesCollection) 392var parentIndexes = GetPropertyIndexes(parentRefProperties, refConstraint.FromProperties); 393foreach (var childRefProperties in childRefPropertiesCollection) 395var childIndexes = GetPropertyIndexes(childRefProperties, refConstraint.ToProperties); 410private Set<int> GetPropertyIndexes(IEnumerable<EdmProperty> properties1, ReadOnlyMetadataCollection<EdmProperty> properties2) 412var propertyIndexes = new Set<int>(); 540Set<EdmProperty> cSideMembers = cell.GetCSlotsForTableColumns(tableColumns); 557Set<EdmProperty> keyMembers = new Set<EdmProperty>(propertyList).MakeReadOnly(); 640private bool CheckForeignKeyColumnOrder(Set<Cell> cells, ErrorLog errorLog)
System\Data\Mapping\ViewGeneration\Validation\KeyConstraint.cs (2)
36private Set<TSlot> m_keySlots; 45protected Set<TSlot> KeySlots
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (1)
61Set<ViewCellSlot> secondKeySlots = new Set<ViewCellSlot>(second.KeySlots);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (4)
252Set<EdmMember> tokenMembers = MetadataHelper.GetConcurrencyMembersForTypeHierarchy(extentType, m_edmItemCollection); 253Set<MemberPath> tokenPaths = new Set<MemberPath>(MemberPath.EqualityComparer); 269Set<MemberPath> conditionMembers = new Set<MemberPath>( 307Set<MemberPath> attributes = left.GetNonNullSlots();
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (4)
26using CellGroup = Set<Cell>; 38private CellGroup m_cellGroup; // The initial cells from which we produce views 52internal ViewGenerator(CellGroup cellGroup, ConfigViewGenerator config, 63Dictionary<EntityType, Set<EntityType>> inheritanceGraph = MetadataHelper.BuildUndirectedGraphOfTypes(entityContainerMapping.StorageMappingItemCollection.EdmItemCollection);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (7)
23using CellGroup = Set<Cell>; 96List<CellGroup> cellGroups = cellGroups = result.CellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new Cell(cell)))).ToList(); 111foreach (CellGroup cellGroup in cellGroups) 182List<CellGroup> cellGroups = partitioner.GroupRelatedCells(); 183foreach (CellGroup cellGroup in cellGroups) 225Set<EntitySetBase> mappedExtents = new Set<EntitySetBase>(); 299private static bool DoesCellGroupContainEntitySet(CellGroup group, EntitySetBase entity)
System\Data\Query\PlanCompiler\PlanCompiler.cs (2)
168internal static void Compile(cqt.DbCommandTree ctree, out List<ProviderCommandInfo> providerCommands, out ColumnMap resultColumnMap, out int columnCount, out Common.Utils.Set<md.EntitySet> entitySets) 265private void Compile(out List<ProviderCommandInfo> providerCommands, out ColumnMap resultColumnMap, out int columnCount, out Common.Utils.Set<md.EntitySet> entitySets)
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
242internal Common.Utils.Set<md.EntitySet> GetEntitySets()
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (7)
49static private readonly Set<string> _datepartKeywords = new Set<string>(new string[] { "year", "yy", "yyyy", 65static private readonly Set<string> _functionRequiresReturnTypeCastToInt64 = new Set<string>(new string[] { "SqlServer.CHARINDEX" }, 67static private readonly Set<string> _functionRequiresReturnTypeCastToInt32 = new Set<string>(new string[] { "SqlServer.LEN" , 74static private readonly Set<string> _functionRequiresReturnTypeCastToInt16 = new Set<string>(new string[] { "Edm.Abs" }, 76static private readonly Set<string> _functionRequiresReturnTypeCastToSingle = new Set<string>(new string[] { "Edm.Abs" , 81static private readonly Set<string> _maxTypeNames = new Set<string>(new string[] { "varchar(max)" , 1809private static bool CastReturnTypeToGivenType(DbFunctionExpression e, Set<string> functionsRequiringReturnTypeCast, PrimitiveTypeKind type)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (5)
301static private readonly Set<string> _canonicalStringFunctionsOneArg = new Set<string>(new string[] { "Edm.Trim" , 312static private readonly Set<string> _canonicalStringFunctionsTwoArgs = new Set<string>(new string[] { "Edm.Concat" }, 315static private readonly Set<string> _canonicalStringFunctionsThreeArgs = new Set<string>(new string[] { "Edm.Replace" }, 318static private readonly Set<string> _storeStringFunctionsOneArg = new Set<string>(new string[] { "SqlServer.RTRIM" , 328static private readonly Set<string> _storeStringFunctionsThreeArgs = new Set<string>(new string[] { "SqlServer.REPLACE" },