System\Data\Common\Internal\Materialization\Shaper.cs (13)
239public IEntityWrapper HandleFullSpanCollection<T_SourceEntity, T_TargetEntity>(IEntityWrapper wrappedEntity, Coordinator<T_TargetEntity> coordinator, AssociationEndMember targetMember)
253public IEntityWrapper HandleFullSpanElement<T_SourceEntity, T_TargetEntity>(IEntityWrapper wrappedSource, IEntityWrapper wrappedSpannedEntity, AssociationEndMember targetMember)
281public IEntityWrapper HandleRelationshipSpan<T_SourceEntity>(IEntityWrapper wrappedEntity, EntityKey targetKey, AssociationEndMember targetMember)
291AssociationEndMember sourceMember = MetadataHelper.GetOtherAssociationEnd(targetMember);
421AssociationEndMember sourceEnd = null;
422AssociationEndMember targetEnd = null;
423foreach (var end in oSpaceAssociation.AssociationEndMembers)
665private void CheckClearedEntryOnSpan(object targetValue, IEntityWrapper wrappedSource, EntityKey sourceKey, AssociationEndMember targetMember)
675AssociationEndMember sourceEnd = MetadataHelper.GetOtherAssociationEnd(targetMember);
692private void CheckClearedEntryOnSpan(EntityKey sourceKey, IEntityWrapper wrappedSource, AssociationEndMember targetMember)
700AssociationEndMember sourceMember = MetadataHelper.GetOtherAssociationEnd(targetMember);
719private void FullSpanAction<T_TargetEntity>(IEntityWrapper wrappedSource, IList<T_TargetEntity> spannedEntities, AssociationEndMember targetMember)
726AssociationEndMember sourceMember = MetadataHelper.GetOtherAssociationEnd(targetMember);
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (10)
95var currentReferenceEnds = new Dictionary<AssociationEndMember, IEntityStateEntry>();
96var originalReferenceEnds = new Dictionary<AssociationEndMember, IEntityStateEntry>();
140Dictionary<AssociationEndMember, IEntityStateEntry> currentReferenceEnd,
141Dictionary<AssociationEndMember, IEntityStateEntry> originalReferenceEnd,
142AssociationEndMember endMember,
227private void BindFunctionParameters(UpdateTranslator translator, ExtractedStateEntry stateEntry, StorageModificationFunctionMapping functionMapping, FunctionUpdateCommand command, Dictionary<AssociationEndMember, IEntityStateEntry> currentReferenceEnds, Dictionary<AssociationEndMember, IEntityStateEntry> originalReferenceEnds)
238AssociationEndMember endMember = parameterBinding.MemberPath.AssociationSetEnd.CorrespondingAssociationEndMember;
339AssociationEndMember endMember = (AssociationEndMember)parameterBinding.MemberPath.Members[1];
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (7)
281AssociationEndMember parentEnd = GetRelationEndForColumns(cell, ChildColumns);
292AssociationEndMember childEnd = GetRelationEndForColumns(cell, primaryKeyFields);
427private bool CheckConstraintWhenOnlyParentMapped(Cell cell, EntitySet parentSet, AssociationSet assocSet, AssociationEndMember endMember,
452AssociationEndMember parentEnd, ConfigViewGenerator config)
494private bool CheckParentColumnsForForeignKey(Cell cell, IEnumerable<Cell> cells, AssociationEndMember parentEnd, ref List<ErrorLog.Record> errorList)
570private static AssociationEndMember GetRelationEndForColumns(Cell cell, IEnumerable<MemberPath> columns)
583AssociationEndMember endMember = relationEnd.CorrespondingAssociationEndMember;
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (8)
94internal static RelatedEnd GetRelatedEnd(RelationshipManager sourceRelationshipManager, AssociationEndMember sourceMember, AssociationEndMember targetMember, RelatedEnd existingRelatedEnd)
466private static Func<RelationshipManager, RelatedEnd, RelatedEnd> CreateGetRelatedEndMethod(AssociationEndMember sourceMember, AssociationEndMember targetMember)
475MethodInfo genericCreateRelatedEndMethod = typeof(LightweightCodeGenerator).GetMethod("CreateGetRelatedEndMethod", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(AssociationEndMember), typeof(AssociationEndMember), typeof(NavigationPropertyAccessor), typeof(NavigationPropertyAccessor) }, null);
484private static Func<RelationshipManager, RelatedEnd, RelatedEnd> CreateGetRelatedEndMethod<TSource, TTarget>(AssociationEndMember sourceMember, AssociationEndMember targetMember, NavigationPropertyAccessor sourceAccessor, NavigationPropertyAccessor targetAccessor)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (29)
144public Dictionary<int, AssociationEndMember> SpannedColumns;
145public Dictionary<AssociationEndMember, bool> FullSpannedEnds;
153info.SpannedColumns = new Dictionary<int, AssociationEndMember>();
156info.FullSpannedEnds = new Dictionary<AssociationEndMember, bool>();
205private void AddSpanMap(RowType rowType, Dictionary<int, AssociationEndMember> columnMap)
234List<KeyValuePair<AssociationEndMember, AssociationEndMember>> relationshipSpans = null;
250foreach (KeyValuePair<AssociationEndMember, AssociationEndMember> relSpan in relationshipSpans)
559private bool TryGetNavigationSource(AssociationEndMember wasSourceNowTargetEnd, out DbExpression source)
596private List<KeyValuePair<AssociationEndMember, AssociationEndMember>> GetRelationshipSpanEnds(EntityType entityType)
599List<KeyValuePair<AssociationEndMember, AssociationEndMember>> retList = null;
610AssociationEndMember end0 = association.AssociationEndMembers[0];
611AssociationEndMember end1 = association.AssociationEndMembers[1];
620retList = new List<KeyValuePair<AssociationEndMember, AssociationEndMember>>();
623retList.Add(new KeyValuePair<AssociationEndMember, AssociationEndMember>(end0, end1));
633retList = new List<KeyValuePair<AssociationEndMember, AssociationEndMember>>();
636retList.Add(new KeyValuePair<AssociationEndMember, AssociationEndMember>(end1, end0));
658private static bool IsValidRelationshipSpan(EntityType compareType, AssociationType associationType, AssociationEndMember fromEnd, AssociationEndMember toEnd)
716private AssociationEndMember _sourceEnd;
726this._sourceEnd = (AssociationEndMember)originalNavigation.NavigateFrom;
733public AssociationEndMember SourceEnd { get { return _sourceEnd; } }
System\Data\Objects\ObjectStateManager.cs (17)
719AssociationEndMember sourceMember = keyEntry.GetAssociationEndMember(relationshipEntry);
720AssociationEndMember targetMember = MetadataHelper.GetOtherAssociationEnd(sourceMember);
804AssociationEndMember sourceMember,
806AssociationEndMember targetMember,
927AssociationEndMember endMember = (AssociationEndMember)(relatedEnd.ToEndMember);
968internal static int UpdateRelationships(ObjectContext context, MergeOption mergeOption, AssociationSet associationSet, AssociationEndMember sourceMember, EntityKey sourceKey, IEntityWrapper wrappedSource, AssociationEndMember targetMember, IList targets, bool setIsLoaded)
1085private static void EnsureCollectionNotNull(AssociationEndMember sourceMember, IEntityWrapper wrappedSource, AssociationEndMember targetMember)
1088AssociationEndMember endMember = (AssociationEndMember)(relatedEnd.ToEndMember);
1107EntityKey sourceKey, AssociationEndMember sourceMember)
1163internal static bool TryUpdateExistingRelationships(ObjectContext context, MergeOption mergeOption, AssociationSet associationSet, AssociationEndMember sourceMember, EntityKey sourceKey, IEntityWrapper wrappedSource, AssociationEndMember targetMember, EntityKey targetKey, bool setIsLoaded, out EntityState newEntryState)
1381ReadOnlyMetadataCollection<AssociationEndMember> endMembers = relationshipEntry.RelationshipWrapper.AssociationEndMembers;
2530bool IEntityStateManager.TryGetReferenceKey(EntityKey dependentKey, AssociationEndMember principalRole, out EntityKey principalKey)