System\Data\Common\Utils\MetadataHelper.cs (22)
187internal static bool DoesMemberExist(StructuralType type, EdmMember member)
189foreach (EdmMember child in type.Members)
202internal static bool IsNonRefSimpleMember(EdmMember member)
242ReadOnlyMetadataCollection<EdmMember> members = endMember.DeclaringType.Members;
245EdmMember otherMember = members[0];
312internal static bool IsMemberNullable(EdmMember member)
506internal static bool DoesEndKeySubsumeAssociationSetKey(AssociationSet assocSet, AssociationEndMember thisEnd, HashSet<Pair<EdmMember, EntityType>> associationkeys)
511HashSet<Pair<EdmMember, EntityType>> thisEndKeys = new HashSet<Pair<EdmMember, EntityType>>(
512thisEndsEntityType.KeyMembers.Select(edmMember => new Pair<EdmMember, EntityType>(edmMember, thisEndsEntityType)));
516IEnumerable<EdmMember> otherEndProperties;
521otherEndProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.FromProperties);
526otherEndProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.ToProperties);
536foreach (EdmMember member in otherEndProperties)
538associationkeys.Remove(new Pair<EdmMember, EntityType>(member, otherEndType));
696internal static bool IsPartOfEntityTypeKey(EdmMember member)
746internal static Set<EdmMember> GetConcurrencyMembersForTypeHierarchy(EntityTypeBase superType, EdmItemCollection edmItemCollection)
748Set<EdmMember> result = new Set<EdmMember>();
754foreach (EdmMember member in type.Members)
768internal static ConcurrencyMode GetConcurrencyMode(EdmMember member)
787internal static StoreGeneratedPattern GetStoreGeneratedPattern(EdmMember member)
System\Data\Mapping\StorageMappingItemCollection.cs (12)
53private Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>> m_memberMappings = new Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>>();
63private ConcurrentDictionary<Tuple<EntitySetBase, EntityTypeBase, InterestingMembersKind>, ReadOnlyCollection<EdmMember>> _cachedInterestingMembers =
64new ConcurrentDictionary<Tuple<EntitySetBase, EntityTypeBase, InterestingMembersKind>, ReadOnlyCollection<EdmMember>>();
454internal ReadOnlyCollection<EdmMember> GetInterestingMembers(EntitySetBase entitySet, EntityTypeBase entityType, InterestingMembersKind interestingMembersKind)
471private ReadOnlyCollection<EdmMember> FindInterestingMembers(EntitySetBase entitySet, EntityTypeBase entityType, InterestingMembersKind interestingMembersKind)
476var interestingMembers = new List<EdmMember>();
508return new ReadOnlyCollection<EdmMember>(interestingMembers.Distinct().ToList());
516private static void FindInterestingAssociationMappingMembers(StorageAssociationTypeMapping associationTypeMapping, List<EdmMember> interestingMembers)
537private static void FindInterestingEntityMappingMembers(StorageEntityTypeMapping entityTypeMapping, InterestingMembersKind interestingMembersKind, List<EdmMember> interestingMembers)
633private void FindForeignKeyProperties(EntitySetBase entitySetBase, EntityTypeBase entityType, List<EdmMember> interestingMembers)
653private static void FindInterestingFunctionMappingMembers(StorageEntityTypeModificationFunctionMapping functionMappings, InterestingMembersKind interestingMembersKind, ref List<EdmMember> interestingMembers)
System\Data\Mapping\StorageMappingItemLoader.cs (19)
96internal StorageMappingItemLoader(XmlReader reader, StorageMappingItemCollection storageMappingItemCollection, string fileName, Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>> scalarMemberMappings)
141private Dictionary<EdmMember, KeyValuePair<TypeUsage, TypeUsage>> m_scalarMemberMappings; // dictionary of all the scalar member mappings - this is to validate that no property is mapped to different store types across mappings.
1425IEnumerable<EdmMember> dependentKeys = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.ToRole).KeyMembers;
2527Common.TypeHelpers.GetAllStructuralMembers(structuralType).Cast<EdmMember>().Zip(propertyMappings)
2777EdmMember endMember = null;
2855EdmMember tempMember;
2926EdmMember tempMember;
2952EdmMember tempMember;
3207EdmMember tempMember;
3663private string GetInvalidMemberMappingErrorMessage(EdmMember cSpaceMember, EdmMember sSpaceMember)
3739private readonly Stack<EdmMember> m_members;
3762m_members = new Stack<EdmMember>();
3933EdmMember property = LoadComplexTypeProperty(
4111private EdmMember LoadComplexTypeProperty(XPathNavigator nav, StructuralType type, out ComplexType complexType)
4123EdmMember property = null;
4234EdmMember property = null;
4305IEnumerable<EdmMember> members = m_members;
4319members = new EdmMember[] { constraint.ToProperties[ordinal], };
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (9)
50HashSet<Pair<EdmMember, EntityType>> associationkeys = new HashSet<Pair<EdmMember, EntityType>>();
57type.KeyMembers.All(member => associationkeys.Add(new Pair<EdmMember, EntityType>(member, type)) || true /* prevent early termination */);
110IEnumerable<EdmMember> toProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.ToProperties);
111if (Helpers.IsSetEqual(toProperties, toEntitySet.ElementType.KeyMembers, EqualityComparer<EdmMember>.Default))
140IEnumerable<EdmMember> toProperties = Helpers.AsSuperTypeList<EdmProperty, EdmMember>(constraint.ToProperties);
141if (Helpers.IsSetEqual(toProperties, toEntitySet.ElementType.KeyMembers, EqualityComparer<EdmMember>.Default))
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (18)
37private readonly List<EdmMember> m_path;
45internal MemberPath(EntitySetBase extent, IEnumerable<EdmMember> path)
55: this(extent, Enumerable.Empty<EdmMember>())
61internal MemberPath(EntitySetBase extent, EdmMember member)
62: this(extent, Enumerable.Repeat<EdmMember>(member, 1))
68internal MemberPath(MemberPath prefix, EdmMember last)
71m_path = new List<EdmMember>(prefix.m_path);
80internal EdmMember RootEdmMember
88internal EdmMember LeafEdmMember
266EdmMember member = m_path.Last();
271EdmMember current = m_path[i];
311private static bool RecurseToFindMemberAbsentInConcreteType(EntityType current, EntityType avoidEdge, EdmMember member, EntityType entitySetType, Dictionary<EntityType, Set<EntityType>> inheritanceGraph)
349foreach (EdmMember member in m_path)
473foreach (EdmMember member in m_path)
567foreach (EdmMember edmMember in structuralType.Members)
763List<EdmMember> newMembers = new List<EdmMember>();
881foreach (EdmMember member in key.m_path)
System\Data\Objects\Internal\EntityProxyFactory.cs (17)
413foreach (EdmMember member in proxyTypeBuilder.LazyLoadMembers)
458private static void InterceptMember(EdmMember member, Type proxyType, EntityProxyTypeInfo proxyTypeInfo)
657public IEnumerable<EdmMember> LazyLoadMembers
669foreach (EdmMember member in _ospaceEntityType.Members)
827HashSet<EdmMember> _members;
834public IEnumerable<EdmMember> Members
841_members = new HashSet<EdmMember>();
843foreach (EdmMember member in ospaceEntityType.Members)
855public bool CanProxyMember(EdmMember member)
870public bool EmitMember(TypeBuilder typeBuilder, EdmMember member, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, BaseProxyImplementor baseImplementor)
1048private HashSet<EdmMember> _scalarMembers;
1049private HashSet<EdmMember> _relationshipMembers;
1082_scalarMembers = new HashSet<EdmMember>();
1083_relationshipMembers = new HashSet<EdmMember>();
1085foreach (EdmMember member in ospaceEntityType.Members)
1192public bool CanProxyMember(EdmMember member)
1197public bool EmitMember(TypeBuilder typeBuilder, EdmMember member, PropertyBuilder propertyBuilder, PropertyInfo baseProperty, BaseProxyImplementor baseImplementor)
System\Data\Query\PlanCompiler\AggregatePushdown.cs (9)
175private Dictionary<Var, Dictionary<EdmMember, GroupAggregateVarRefInfo>> _groupAggregateVarRelatedVarPropertyToInfo;
214internal void Add(Var var, GroupAggregateVarInfo groupAggregateVarInfo, Node computationTemplate, bool isUnnested, EdmMember property)
223this._groupAggregateVarRelatedVarPropertyToInfo = new Dictionary<Var, Dictionary<System.Data.Metadata.Edm.EdmMember, GroupAggregateVarRefInfo>>();
225Dictionary<EdmMember, GroupAggregateVarRefInfo> varPropertyDictionary;
228varPropertyDictionary = new Dictionary<System.Data.Metadata.Edm.EdmMember, GroupAggregateVarRefInfo>();
258internal bool TryGetReferencedGroupAggregateVarInfo(Var var, EdmMember property, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
265Dictionary<EdmMember, GroupAggregateVarRefInfo> varPropertyDictionary;
526private Node TranslateOverGroupAggregateVar(Var var, EdmMember property)
529EdmMember localProperty;