System\Data\Common\Internal\Materialization\Shaper.cs (13)
38this.AssociationSpaceMap = new Dictionary<AssociationType, AssociationType>();
98private readonly Dictionary<AssociationType, AssociationType> AssociationSpaceMap;
303targetKey.EntitySetName, (AssociationType)(targetMember.DeclaringType), targetMember.Name, out targetEntitySet);
399if(TryGetRelatedEnd(wrappedEntity, (AssociationType)targetMember.DeclaringType, sourceMember.Name, targetMember.Name, out relatedEnd))
409private bool TryGetRelatedEnd(IEntityWrapper wrappedEntity, AssociationType associationType, string sourceEndName, string targetEndName, out RelatedEnd relatedEnd)
414AssociationType oSpaceAssociation;
415if (!AssociationSpaceMap.TryGetValue((AssociationType)associationType, out oSpaceAssociation))
417oSpaceAssociation = this.Workspace.GetItemCollection(DataSpace.OSpace).GetItem<AssociationType>(associationType.FullName);
418AssociationSpaceMap[(AssociationType)associationType] = oSpaceAssociation;
706(AssociationType)sourceMember.DeclaringType, sourceMember.Name, out sourceEntitySet);
729if (TryGetRelatedEnd(wrappedSource, (AssociationType)targetMember.DeclaringType, sourceMember.Name, targetMember.Name, out relatedEnd))
System\Data\Objects\DataClasses\RelationshipManager.cs (17)
421AssociationType associationType = null;
449private RelatedEnd GetRelatedEndInternal(string relationshipName, string targetRoleName, RelatedEnd existingRelatedEnd, AssociationType relationship)
454private RelatedEnd GetRelatedEndInternal(string relationshipName, string targetRoleName, RelatedEnd existingRelatedEnd, AssociationType relationship, bool throwOnError)
543AssociationType relationship = GetRelationshipType(wrappedOwner.IdentityType, relationshipName);
597AssociationType relationship = GetRelationshipType(wrappedOwner.IdentityType, relationshipName);
700internal static bool TryGetRelationshipType(IEntityWrapper wrappedOwner, Type entityClrType, string relationshipName, out AssociationType associationType)
715private AssociationType GetRelationshipType(Type entityClrType, string relationshipName)
717AssociationType associationType = null;
742EntityType end2EntityType = ((AssociationType)assocSet.ElementType).AssociationEndMembers[1].GetEntityType();
745yield return ((AssociationType)assocSet.ElementType).AssociationEndMembers[0];
748EntityType end1EntityType = ((AssociationType)assocSet.ElementType).AssociationEndMembers[0].GetEntityType();
751yield return ((AssociationType)assocSet.ElementType).AssociationEndMembers[1];
768IEnumerable<AssociationType> associations = null;
772associations = objectItemCollection.GetItems<AssociationType>();
780foreach (AssociationType association in associations)
801private bool VerifyRelationship(AssociationType relationship, string sourceEndName, bool throwOnError)
833(AssociationType)associationTypeUsage.EdmType, sourceEndName, out entitySet);