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