8 instantiations of Pair
System.Data.Entity (8)
System\Data\Common\Utils\MetadataHelper.cs (2)
512thisEndsEntityType.KeyMembers.Select(edmMember => new Pair<EdmMember, EntityType>(edmMember, thisEndsEntityType))); 538associationkeys.Remove(new Pair<EdmMember, EntityType>(member, otherEndType));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
207OfTypeQVCacheKey key = new OfTypeQVCacheKey(entity, new Pair<EntityTypeBase, bool>(type, includeSubtypes));
System\Data\Mapping\StorageMappingItemLoader.cs (2)
1359Triple key = new Triple(setMapping.Set, new Pair<EntityTypeBase, bool>(entityType, includeSubtypes));
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
57type.KeyMembers.All(member => associationkeys.Add(new Pair<EdmMember, EntityType>(member, type)) || true /* prevent early termination */);
System\Data\Objects\EntityEntry.cs (1)
3822relationships.Add(new Pair<string, string>(dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name));
46 references to Pair
System.Data.Entity (46)
System\Data\Common\Utils\MetadataHelper.cs (3)
506internal static bool DoesEndKeySubsumeAssociationSetKey(AssociationSet assocSet, AssociationEndMember thisEnd, HashSet<Pair<EdmMember, EntityType>> associationkeys) 511HashSet<Pair<EdmMember, EntityType>> thisEndKeys = new HashSet<Pair<EdmMember, EntityType>>(
System\Data\Common\Utils\Pair.cs (7)
60public bool Equals(Pair<TFirst, TSecond> other) 67Pair<TFirst, TSecond> otherPair = other as Pair<TFirst, TSecond>; 84internal class PairComparer : IEqualityComparer<Pair<TFirst, TSecond>> 92public bool Equals(Pair<TFirst, TSecond> x, Pair<TFirst, TSecond> y) 97public int GetHashCode(Pair<TFirst, TSecond> source)
System\Data\Mapping\StorageMappingItemCollection.cs (6)
26using OfTypeQVCacheKey = Pair<EntitySetBase, Pair<EntityTypeBase, bool>>; 207Dictionary<OfTypeQVCacheKey, GeneratedView> userDefinedQueryViewsOfTypeDict; 734Dictionary<OfTypeQVCacheKey, GeneratedView> userDefinedQueryViewsOfTypeDict, 788Dictionary<OfTypeQVCacheKey, GeneratedView> userDefinedQueryViewsOfTypeDict, 814foreach (OfTypeQVCacheKey key in setMapping.GetTypeSpecificQVKeys())
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (11)
24using OfTypeQVCacheKey = Pair<EntitySetBase, Pair<EntityTypeBase, bool>>; 29internal delegate bool TryGetUserDefinedQueryViewOfType(OfTypeQVCacheKey extent, out GeneratedView generatedView); 54private readonly Memoizer<OfTypeQVCacheKey, GeneratedView> m_generatedViewOfTypeMemoizer; 58out Dictionary<OfTypeQVCacheKey, GeneratedView> userDefinedQueryViewsOfTypeDict) 62this.m_generatedViewOfTypeMemoizer = new Memoizer<OfTypeQVCacheKey, GeneratedView>(SerializedGeneratedViewOfType, OfTypeQVCacheKey.PairComparer.Instance); 65userDefinedQueryViewsOfTypeDict = new Dictionary<OfTypeQVCacheKey, GeneratedView>(OfTypeQVCacheKey.PairComparer.Instance); 207OfTypeQVCacheKey key = new OfTypeQVCacheKey(entity, new Pair<EntityTypeBase, bool>(type, includeSubtypes)); 216private GeneratedView SerializedGeneratedViewOfType(OfTypeQVCacheKey arg)
System\Data\Mapping\StorageMappingItemLoader.cs (3)
26using Triple = Pair<EntitySetBase, Pair<EntityTypeBase, bool>>; 1359Triple key = new Triple(setMapping.Set, new Pair<EntityTypeBase, bool>(entityType, includeSubtypes));
System\Data\Mapping\StorageSetMapping.cs (10)
21using Triple = Pair<EntitySetBase, Pair<EntityTypeBase, bool>>; 92private Dictionary<Triple, string> m_typeSpecificQueryViews = new Dictionary<Triple, string>(Triple.PairComparer.Instance); 221internal bool ContainsTypeSpecificQueryView(Triple key) 230internal void AddTypeSpecificQueryView(Triple key, string viewString) 236internal ReadOnlyCollection<Triple> GetTypeSpecificQVKeys() 238return new ReadOnlyCollection<Triple>(m_typeSpecificQueryViews.Keys.ToList()); 241internal string GetTypeSpecificQueryView(Triple key)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (2)
50HashSet<Pair<EdmMember, EntityType>> associationkeys = new HashSet<Pair<EdmMember, EntityType>>();
System\Data\Objects\EntityEntry.cs (4)
1121List<Pair<string, string>> relationships; 1126foreach (var relationship in relationships) 3808private bool IsPropertyAForeignKey(string propertyName, out List<Pair<string, string>> relationships) 3820relationships = new List<Pair<string, string>>();