1 instantiation of AssociationSet
System.Data.Entity (1)
System\Data\Metadata\Converter.cs (1)
662AssociationSet associationSet = new AssociationSet(relationshipSet.Name, associationType);
300 references to AssociationSet
System.Data.Entity (238)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (2)
126.Cast<AssociationSet>() 150foreach (AssociationSet relSet in relSets)
System\Data\Common\Internal\Materialization\Shaper.cs (4)
302AssociationSet associationSet = MetadataHelper.GetAssociationsForEntitySetAndAssociationType(entityContainer, 471if (((AssociationSet)entitySetBase).AssociationSetEnds[sourceEndName].EntitySet == entitySet) 705AssociationSet associationSet = MetadataHelper.GetAssociationsForEntitySetAndAssociationType(entityContainer, sourceKey.EntitySetName, 732int count = ObjectStateManager.UpdateRelationships(this.Context, this.MergeOption, (AssociationSet)relatedEnd.RelationshipSet, sourceMember, sourceKey, wrappedSource, targetMember, (List<T_TargetEntity>)spannedEntities, true);
System\Data\Common\Utils\MetadataHelper.cs (20)
233internal static EntitySet GetEntitySetAtEnd(AssociationSet associationSet, 256internal static bool IsEveryOtherEndAtLeastOne(AssociationSet associationSet, 506internal static bool DoesEndKeySubsumeAssociationSetKey(AssociationSet assocSet, AssociationEndMember thisEnd, HashSet<Pair<EdmMember, EntityType>> associationkeys) 548internal static bool DoesEndFormKey(AssociationSet associationSet, AssociationEndMember end) 563internal static bool IsExtentAtSomeRelationshipEnd(AssociationSet relationshipSet, EntitySetBase extent) 574internal static AssociationEndMember GetSomeEndForEntitySet(AssociationSet associationSet, EntitySetBase entitySet) 591internal static List<AssociationSet> GetAssociationsForEntitySets(EntitySet entitySet1, EntitySet entitySet2) 597List<AssociationSet> result = new List<AssociationSet>(); 603AssociationSet assocSet = (AssociationSet)extent; 617internal static AssociationSet GetAssociationsForEntitySetAndAssociationType(EntityContainer entityContainer, string entitySetName, 622AssociationSet retValue = null; 630AssociationSet assocSet = (AssociationSet)extent; 649internal static List<AssociationSet> GetAssociationsForEntitySet(EntitySetBase entitySet) 653List<AssociationSet> result = new List<AssociationSet>(); 659AssociationSet assocSet = (AssociationSet)extent;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
50Visit((AssociationSet)entitySetBase); 81protected virtual void Visit(AssociationSet associationSet)
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
274protected override void Visit(AssociationSet associationSet)
System\Data\Mapping\StorageAssociationSetMapping.cs (1)
44internal StorageAssociationSetMapping(AssociationSet extent, StorageEntityContainerMapping entityContainerMapping)
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
294associationSetMappings = associationSetMappings.Where(associationSetMap => ((associationSetMap.Set as AssociationSet).AssociationSetEnds.Any(associationSetEnd => associationSetEnd.EntitySet == edmEntitySet))); 340internal bool ContainsAssociationSetMapping(AssociationSet associationSet) {
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
276AssociationSet aSet = (AssociationSet)extent;
System\Data\Mapping\StorageMappingItemLoader.cs (15)
686AssociationSet associationSet = entitySetBase as AssociationSet; 705AssociationSet associationSet = entitySetBase as AssociationSet; 1214var associationEnds = new Dictionary<AssociationSet, AssociationEndMember>(); 1219AssociationSet associationSet = parameterBinding.MemberPath.AssociationSetEnd.ParentAssociationSet; 1412AssociationSet associationSet = relationshipSet as AssociationSet; 2625(AssociationSet)associationSetMapping.Set, deleteFunctionMapping, insertFunctionMapping); 3716private readonly AssociationSet m_associationSet; 3742private AssociationSet m_associationSetNavigation; 3759m_associationSet = (AssociationSet)extent; 4005AssociationSet associationSet; 4019associationSet = (AssociationSet)relationshipSet; 4306AssociationSet associationSetNavigation = m_associationSetNavigation;
System\Data\Mapping\StorageModificationFunctionMapping.cs (4)
29AssociationSet associationSet, 41internal readonly AssociationSet AssociationSet; 208foreach (AssociationSet assocationSet in MetadataHelper.GetAssociationsForEntitySet(entitySet)) 297internal StorageModificationFunctionMemberPath(IEnumerable<EdmMember> members, AssociationSet associationSetNavigation)
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (1)
51internal AssociationSetMetadata(Set<EntitySet> affectedTables, AssociationSet associationSet, MetadataWorkspace workspace)
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (3)
118AssociationSet associationSet = extent as AssociationSet; 161private PropagatorResult CreateAssociationSetPlaceholder(AssociationSet associationSet)
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (11)
36m_referencingRelationshipSets = new Dictionary<EntitySet, List<AssociationSet>>(EqualityComparer<EntitySet>.Default); 55private readonly Dictionary<EntitySet, List<AssociationSet>> m_referencingRelationshipSets; 85foreach (AssociationSet associationSet in GetReferencingAssocationSets(entitySet)) 135internal void RegisterAssociation(AssociationSet associationSet, IExtendedDataRecord record, IEntityStateEntry stateEntry) 313private IEnumerable<AssociationSet> GetReferencingAssocationSets(EntitySet entitySet) 315List<AssociationSet> relationshipSets; 320relationshipSets = new List<AssociationSet>(); 326AssociationSet associationSet = extent as AssociationSet; 379internal readonly AssociationSet AssociationSet; 388internal DirectionalRelationship(EntityKey toEntityKey, AssociationEndMember fromEnd, AssociationEndMember toEnd, AssociationSet associationSet, IEntityStateEntry stateEntry)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (2)
94AssociationSet associationSet = extent as AssociationSet;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (8)
58m_requiredEntities = new Dictionary<EntityKey, AssociationSet>(); 91private readonly Dictionary<EntityKey, AssociationSet> m_requiredEntities; 170AssociationSet associationSet = (AssociationSet)stateEntry.EntitySet; 229AssociationSet associationSet = foreignKey.Item1; 867foreach (KeyValuePair<EntityKey, AssociationSet> required in m_requiredEntities) 952AssociationSet associationSet = extent as AssociationSet;
System\Data\Mapping\Update\Internal\ViewLoader.cs (12)
42private readonly Dictionary<AssociationSet, AssociationSetMetadata> m_associationSetMetadata = new Dictionary<AssociationSet, AssociationSetMetadata>(); 79internal AssociationSetMetadata GetAssociationSetMetadata(AssociationSet associationSet, MetadataWorkspace workspace) 231AssociationSet associationSet = (AssociationSet)entitySetBase; 270KeyToListMap<AssociationSet, AssociationEndMember> requiredEnds = new KeyToListMap<AssociationSet, AssociationEndMember>( 271EqualityComparer<AssociationSet>.Default); 287AssociationSet associationSet = end.ParentAssociationSet; 310AssociationSet set = (AssociationSet)associationSetMapping.Set; 333foreach (AssociationSet associationSet in requiredEnds.Keys)
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (4)
105AssociationSet cRelationSet1 = cell1.CQuery.Extent as AssociationSet; 106AssociationSet cRelationSet2 = cell2.CQuery.Extent as AssociationSet;
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (3)
397AssociationSet associationSet = (AssociationSet)caseMemberPath.Extent; 414EntitySet entitySet = MetadataHelper.GetEntitySetAtEnd((AssociationSet)caseMemberPath.Extent,
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
43AssociationSet assocSet = extent as AssociationSet; 128internal void CreateEquivalenceConstraintForOneToOneForeignKeyAssociation(AssociationSet assocSet, MemberDomainMap domainMap,
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (7)
292AssociationSet assocSet = Extent as AssociationSet; 340List<AssociationSet> associations = MetadataHelper.GetAssociationsForEntitySet(rightCellQuery.Extent as EntitySet); 341foreach (var association in associations.Where(association => association.AssociationSetEnds.Any(end => ( end.CorrespondingAssociationEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One && 478AssociationSet relationshipSet = (AssociationSet)Extent; 611Debug.Assert(this.Extent is AssociationSet);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (2)
223AssociationSet associationSet = (AssociationSet)colocatedAssociationSetMap.Set;
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (2)
190if (RightExtent is AssociationSet) 195AssociationSetEnd setEnd = ((AssociationSet)RightExtent).AssociationSetEnds[ends.First().Name];
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (13)
196EntitySet result = MetadataHelper.GetEntitySetAtEnd((AssociationSet)m_extent, endMember); 628AssociationSet assocSet0 = path0.Extent as AssociationSet; 629AssociationSet assocSet1 = path1.Extent as AssociationSet; 650List<AssociationSet> assocSets = MetadataHelper.GetAssociationsForEntitySets(entitySet0, entitySet1); 651foreach (AssociationSet assocSet in assocSets) 666AssociationSet assocSet = assocSet0 != null ? assocSet0 : assocSet1; 671MemberPath assocEndPathA = path0.Extent is AssociationSet ? path0 : path1; 697AssociationSet assocSet) 750private MemberPath GetCorrespondingAssociationPath(AssociationSet assocSet) 788AssociationSet associationSet = (AssociationSet)m_extent;
System\Data\Mapping\ViewGeneration\Structures\WithStatement.cs (2)
28internal WithRelationship(AssociationSet associationSet, 46private readonly AssociationSet m_associationSet;
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (3)
60Debug.Assert(m_cellQuery.Extent is EntitySet || m_cellQuery.Extent is AssociationSet, 89AssociationSet relationshipSet = m_cellQuery.Extent as AssociationSet;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (4)
307var nonAssociationWrappers = leftCellWrappers.Where(r => !(r.LeftExtent is AssociationSet) && !(r.RightCellQuery.Extent is AssociationSet)); 509(fragment1.OnlyInputCell.CQuery.Extent is AssociationSet || 510fragment2.OnlyInputCell.CQuery.Extent is AssociationSet))
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (15)
33internal ForeignConstraint(AssociationSet i_fkeySet, EntitySet i_parentTable, EntitySet i_childTable, 57private AssociationSet m_fKeySet; // Just for debugging 96AssociationSet relationSet = extent as AssociationSet; 308AssociationSet assocSet = (AssociationSet)cell.CQuery.Extent; 375var foreignKeyAssociations = childContext.EntityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().Where(it => it.ElementType.IsForeignKey).Select(it => it.ElementType); 427private bool CheckConstraintWhenOnlyParentMapped(Cell cell, EntitySet parentSet, AssociationSet assocSet, AssociationEndMember endMember, 498AssociationSet relationSet = (AssociationSet)cell.CQuery.Extent; 535if (cQuery.Extent is AssociationSet) 577AssociationSet relationSet = (AssociationSet)cell.CQuery.Extent; 795AssociationSet set = cell.CQuery.Extent as AssociationSet;
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (2)
172AssociationSet associationSet = (AssociationSet)cSet;
System\Data\Mapping\ViewGeneration\Validator.cs (2)
351error = cell.CQuery.CheckForProjectedNotNullSlots(cell, m_cells.Where(c=> c.SQuery.Extent is AssociationSet)); 356error = cell.SQuery.CheckForProjectedNotNullSlots(cell, m_cells.Where(c => c.CQuery.Extent is AssociationSet));
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (2)
137var allForeignKeyAssociationSets = this.m_entityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().Where(it => it.ElementType.IsForeignKey); 149foreach (var assocSet in oneToOneForeignKeyAssociationSetsForThisWrapper)
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (2)
247AssociationSet associationSet = extent as AssociationSet;
System\Data\Mapping\ViewValidator.cs (2)
310AssociationSet associationSet = _setMapping.Set as AssociationSet;
System\Data\Metadata\Converter.cs (2)
649private static AssociationSet ConvertToAssociationSet(Som.EntityContainerRelationshipSet relationshipSet, 662AssociationSet associationSet = new AssociationSet(relationshipSet.Name, associationType);
System\Data\Metadata\Edm\AssociationSetEnd.cs (4)
30internal AssociationSetEnd(EntitySet entitySet, AssociationSet parentSet, AssociationEndMember endMember) 40private readonly AssociationSet _parentSet; 56public AssociationSet ParentAssociationSet 148AssociationSet parentAssociationSet = ParentAssociationSet;
System\Data\Metadata\Edm\EntitySet.cs (9)
42private ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> _foreignKeyDependents; 43private ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> _foreignKeyPrincipals; 69internal ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> ForeignKeyDependents 85internal ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> ForeignKeyPrincipals 132var dependents = new List<Tuple<AssociationSet, ReferentialConstraint>>(); 133var principals = new List<Tuple<AssociationSet, ReferentialConstraint>>(); 136foreach (AssociationSet associationSet in MetadataHelper.GetAssociationsForEntitySet(this)) 147dependents.Add(new Tuple<AssociationSet, ReferentialConstraint>(associationSet, constraint)); 153principals.Add(new Tuple<AssociationSet, ReferentialConstraint>(associationSet, constraint));
System\Data\Metadata\MetadataWorkspace.cs (4)
1439AssociationSet associationSet = entitySet as AssociationSet; 1453AssociationSet associationSet = entitySet as AssociationSet;
System\Data\Objects\DataClasses\EntityCollection.cs (1)
198singleEntitySet = ((AssociationSet)this.RelationshipSet).AssociationSetEnds[this.ToEndMember.Name].EntitySet;
System\Data\Objects\DataClasses\EntityReference.cs (6)
135relationshipEntry.IsSameAssociationSetAndRole((AssociationSet)RelationshipSet, (AssociationEndMember)this.FromEndProperty, ownerKey)) 271RelationshipWrapper wrapper = new RelationshipWrapper((AssociationSet)RelationshipSet, RelationshipNavigation.From, ownerKey, RelationshipNavigation.To, value); 477EntitySet principalEntitySet = ((AssociationSet)RelationshipSet).AssociationSetEnds[ToEndMember.Name].EntitySet; 480EntitySet dependentEntitySet = ((AssociationSet)RelationshipSet).AssociationSetEnds[FromEndProperty.Name].EntitySet; 578EntitySet dependentEntitySet = ((AssociationSet)RelationshipSet).AssociationSetEnds[FromEndProperty.Name].EntitySet; 660EntitySet dependentEntitySet = ((AssociationSet)RelationshipSet).AssociationSetEnds[FromEndProperty.Name].EntitySet;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (3)
196ObjectStateManager.RemoveRelationships(ObjectContext, mergeOption, (AssociationSet)RelationshipSet, sourceKey, (AssociationEndMember)FromEndProperty); 307if (relationshipEntry.IsSameAssociationSetAndRole((AssociationSet)RelationshipSet, (AssociationEndMember)ToEndMember, DetachedEntityKey) && 364RelationshipWrapper wrapper = new RelationshipWrapper((AssociationSet)RelationshipSet,
System\Data\Objects\DataClasses\RelatedEnd.cs (14)
393EntitySet ownerEntitySet = ((AssociationSet)_relationshipSet).AssociationSetEnds[_fromEndProperty.Name].EntitySet; 394EntitySet targetEntitySet = ((AssociationSet)_relationshipSet).AssociationSetEnds[_toEndProperty.Name].EntitySet; 777EntitySet targetEntitySet = ((AssociationSet)RelationshipSet).AssociationSetEnds[TargetRoleName].EntitySet; 800ObjectStateManager.UpdateRelationships(this.ObjectContext, mergeOption, (AssociationSet)RelationshipSet, (AssociationEndMember)FromEndProperty, sourceKey, _wrappedOwner, (AssociationEndMember)ToEndMember, collection, setIsLoaded); 1106if ((((AssociationSet)_relationshipSet).AssociationSetEnds[_navigation.To] != null) && 1107(((AssociationSet)_relationshipSet).AssociationSetEnds[_navigation.To].EntitySet != set)) 2135AssociationSet associationSet = (AssociationSet)_relationshipSet; 2160new RelationshipWrapper((AssociationSet)_relationshipSet, 2346AssociationSet associationset = set as AssociationSet; 2352throw EntityUtil.EntitySetIsNotValidForRelationship(entitySet.EntityContainer.Name, entitySet.Name, _navigation.From, ((AssociationSet)set).EntityContainer.Name, ((AssociationSet)set).Name); 2435if (((AssociationSet)entitySetBase).AssociationSetEnds[_navigation.From].EntitySet == entitySet)
System\Data\Objects\DataClasses\RelationshipManager.cs (4)
740foreach (AssociationSet assocSet in MetadataHelper.GetAssociationsForEntitySet(ownerEntitySet)) 818AssociationSet association = null; 1449List<AssociationSet> associations = MetadataHelper.GetAssociationsForEntitySet(entitySet); 1453foreach (AssociationSet association in associations)
System\Data\Objects\EntityEntry.cs (10)
154internal IEnumerable<Tuple<AssociationSet, ReferentialConstraint>> ForeignKeyDependents 160AssociationSet associationSet = foreignKey.Item1; 171internal IEnumerable<Tuple<AssociationSet, ReferentialConstraint>> ForeignKeyPrincipals 177AssociationSet associationSet = foreignKey.Item1; 2100foreach (Tuple<AssociationSet, ReferentialConstraint> dependent in ForeignKeyDependents) 2713AssociationSet association; 2723association = (AssociationSet)relationshipEntry.EntitySet; 2785AssociationSet association; 2796association = (AssociationSet)relationshipEntry.EntitySet; 3839AssociationSet associationSet = dependent.Item1;
System\Data\Objects\ObjectStateManager.cs (8)
968internal static int UpdateRelationships(ObjectContext context, MergeOption mergeOption, AssociationSet associationSet, AssociationEndMember sourceMember, EntityKey sourceKey, IEntityWrapper wrappedSource, AssociationEndMember targetMember, IList targets, bool setIsLoaded) 1106internal static void RemoveRelationships(ObjectContext context, MergeOption mergeOption, AssociationSet associationSet, 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) 1393EntityReference reference = entry.WrappedEntity.RelationshipManager.GetRelatedEndInternal(((AssociationSet)relationshipEntry.EntitySet).ElementType.FullName, targetRoleName) as EntityReference; 1613return FindRelationship(new RelationshipWrapper((AssociationSet)relationshipSet, roleAndKey1, roleAndKey2)); 2282RelationshipWrapper relationshipWrapper = new RelationshipWrapper((AssociationSet)relatedEnd.RelationshipSet, 3304AssociationSet associationSet = (AssociationSet)relatedEnd.RelationshipSet;
System\Data\Objects\RelationshipEntry.cs (2)
371internal bool IsSameAssociationSetAndRole(AssociationSet associationSet, AssociationEndMember associationMember, EntityKey entityKey) 517string relationshipName = ((AssociationSet)_entitySet).ElementType.FullName;
System\Data\Objects\RelationshipWrapper.cs (4)
18internal readonly AssociationSet AssociationSet; 22internal RelationshipWrapper(AssociationSet extent, EntityKey key) 43internal RelationshipWrapper(AssociationSet extent, 50internal RelationshipWrapper(AssociationSet extent,
System\Data\Query\PlanCompiler\ConstraintManager.cs (2)
131md.AssociationSet assocSet = relationshipSet as md.AssociationSet;
System\Data\Query\PlanCompiler\PreProcessor.cs (4)
679AssociationSet associationSet = (AssociationSet)relationshipSet; 1552AssociationSet rs = es as AssociationSet;
System\Data\SqlClient\SqlProviderUtilities.cs (3)
72foreach (AssociationSet associationSet in container.BaseEntitySets.OfType<AssociationSet>().OrderBy(s => s.Name)) 194private void AppendCreateForeignKeys(AssociationSet associationSet)
System.Data.Entity.Design (45)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
694WriteAssociationSetElement((AssociationSet)set); 709private void WriteAssociationSetElement(AssociationSet associationSet)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (18)
30internal Dictionary<AssociationSet, AssociationSet> StoreAssociationSetToModelAssociationSet = new Dictionary<AssociationSet, AssociationSet>(); 46private List<AssociationSet> _storeAssociationSets = new List<AssociationSet>(2); 47private AssociationSet _modelAssociationSet; 49public AssociationSet ModelAssociationSet 70public List<AssociationSet> AssociationSets 82private void GetFromAssociationSetEnd(AssociationSet definingSet, AssociationSet multiplicitySet, out AssociationSetEnd associationSetEnd, out RelationshipMultiplicity multiplicity, out OperationAction deleteBehavior) 136private static AssociationSetEnd GetAssociationSetEnd(AssociationSet set, bool fromEnd) 285foreach(AssociationSet set in _lookups.StoreAssociationSetToModelAssociationSet.Keys) 287AssociationSet modelAssociationSet = _lookups.StoreAssociationSetToModelAssociationSet[set]; 372private void WriteAssociationSetMappingElement(XmlWriter writer, AssociationSet store, AssociationSet model) 412private static AssociationSetEnd GetAssociationSetEndForForeignKeyTable(AssociationSet store) 418internal static ReferentialConstraint GetReferentialConstraint(AssociationSet set)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (22)
324List<AssociationSet> storeAssociationSets = new List<AssociationSet>(); 337if (this.GenerateForeignKeyProperties || !EntityStoreSchemaGenerator.IsFkPartiallyContainedInPK(((AssociationSet)storeSet).ElementType, out errorMessage)) 339storeAssociationSets.Add((AssociationSet)storeSet); 356foreach (AssociationSet storeAssociationSet in storeAssociationSets) 361Set<AssociationSet> associationSetsFromCollapseCandidateRejects = new Set<AssociationSet>(); 376foreach (AssociationSet storeAssociationSet in (IEnumerable<AssociationSet>)associationSetsFromCollapseCandidateRejects) 380AssociationSet set = CreateModelAssociationSet(session, storeAssociationSet); 391AssociationSet set = CreateModelAssociationSet(session, collapsed); 612foreach (AssociationSet set in collapsed.AssociationSets) 636private bool IsAssociationPartOfCandidateCollapsedAssociation(LoadMethodSessionState session, AssociationSet storeAssociationSet) 649private void SaveAssociationForCollapsedAssociationCandidate(LoadMethodSessionState session, AssociationSet storeAssociationSet) 667ReferentialConstraint constraint = OneToOneMappingSerializer.GetReferentialConstraint(((AssociationSet)storeSet)); 672session.FkProperties.Add(property, ((AssociationSet)storeSet).ElementType); 835private AssociationSet CreateModelAssociationSet(LoadMethodSessionState session, OneToOneMappingSerializer.CollapsedEntityAssociationSet collapsedAssociationSet) 844AssociationSet set = new AssociationSet(associationSetName, association); 872private AssociationSet CreateModelAssociationSet(LoadMethodSessionState session, AssociationSet storeAssociationSet) 884AssociationSet set = new AssociationSet(name, association); 896private AssociationSetEnd CreateModelAssociationSetEnd(LoadMethodSessionState session, AssociationSetEnd storeEnd, AssociationSet parentModelAssociationSet)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (3)
183AssociationSet set = CreateAssociationSet(session, type); 456private AssociationSet CreateAssociationSet(LoadMethodSessionState session, 459AssociationSet set = new AssociationSet(type.Name, type);
System.Data.Services (15)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (15)
127foreach (AssociationSet associationSet in sourceEntitySet.EntityContainer.BaseEntitySets.OfType<AssociationSet>()) 1094foreach (AssociationSet associationSet in container.BaseEntitySets.OfType<AssociationSet>()) 1760private static void WriteAssociationSet(XmlWriter xmlWriter, AssociationSet associationSet) 1987List<AssociationSet> associationSets; 1990foreach (AssociationSet associationSet in associationSets) 2498private Dictionary<EntityContainer, List<AssociationSet>> associationSets = new Dictionary<EntityContainer, List<AssociationSet>>(EqualityComparer<EntityContainer>.Default); 2565internal Dictionary<EntityContainer, List<AssociationSet>> AssociationSets 2655List<AssociationSet> associationSetInContainer; 2658associationSetInContainer = new List<AssociationSet>(); 2681AssociationSet associationSet = (AssociationSet)set; 2700associationSetInContainer.Add((AssociationSet)set);
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
756foreach (AssociationSet associationSet in entitySet.EntityContainer.BaseEntitySets.OfType<AssociationSet>())