57 references to FromRole
System.Data.Entity (49)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (3)
162var principalSetEnd = relSet.AssociationSetEnds[fkConstraint.FromRole.Name]; 282EntityType principalEntityType = (EntityType)TypeHelpers.GetEdmType<RefType>(fkConstraint.FromRole.TypeUsage).ElementType; 323DbRelatedEntityRef result = DbExpressionBuilder.CreateRelatedEntityRef(fkConstraint.ToRole, fkConstraint.FromRole, principalRef);
System\Data\Common\Utils\MetadataHelper.cs (2)
522otherEndType = (EntityType)((RefType)((AssociationEndMember)constraint.FromRole).TypeUsage.EdmType).ElementType; 524else if (thisEnd.Equals((AssociationEndMember)constraint.FromRole))
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
171Visit(referentialConstraint.FromRole);
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (3)
293EntitySet principalSet = aSet.AssociationSetEnds[rc.FromRole.Name].EntitySet; 299EntityType principalType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)rc.FromRole); 305if (rc.FromRole.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne)
System\Data\Mapping\StorageMappingItemLoader.cs (1)
4314if (constraint.FromRole == targetEnd)
System\Data\Mapping\StorageModificationFunctionMapping.cs (1)
218ends.Add(assocationSet.AssociationSetEnds[constraint.FromRole.Name]);
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (1)
96AssociationEndMember principalEnd = (AssociationEndMember)constraint.FromRole;
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
114target = associationSet.AssociationSetEnds[constraint.FromRole.Name];
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (6)
178EntityKey principalKey = (EntityKey)record[constraint.FromRole.Name]; 191int principalOffset = GetKeyMemberOffset(constraint.FromRole, principalPropertyEnum.Current, 237if (!currentValues || !m_stateManager.TryGetReferenceKey(dependentKey, (AssociationEndMember)constraint.FromRole, out principalKey)) 240EntityType principalType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.FromRole); 260EntitySet principalSet = associationSet.AssociationSetEnds[constraint.FromRole.Name].EntitySet; 307int principalOffset = GetKeyMemberOffset(constraint.FromRole, principalProperty, out principalKeyMemberCount);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
114if (constraint.FromRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.One)) 135AssociationEndMember fromEndMember = (AssociationEndMember)constraint.FromRole; 144Debug.Assert(constraint.FromRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.One));
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (2)
718bool isFrom0 = end0.Name == constraint.FromRole.Name && 720bool isFrom1 = end1.Name == constraint.FromRole.Name &&
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (1)
118EntitySet parentExtent = endToExtents[constraint.FromRole.Name];
System\Data\Metadata\Converter.cs (1)
519referentialConstraint.FromRole.Documentation = ConvertToDocumentation(constraint.PrincipalRole.Documentation);
System\Data\Metadata\Edm\EntitySet.cs (2)
149if (constraint.FromRole.GetEntityType().IsAssignableFrom(this.ElementType) || 150this.ElementType.IsAssignableFrom(constraint.FromRole.GetEntityType()))
System\Data\Metadata\Edm\NavigationProperty.cs (1)
155var keyMembers = rc.FromRole.GetEntityType().KeyMembers;
System\Data\Metadata\Edm\ReferentialConstraint.cs (3)
64return this.FromRole.Name + "_" + this.ToRole.Name; 128return this.FromRole.Name + "_" + this.ToRole.Name; 140RelationshipEndMember fromRole = FromRole;
System\Data\Objects\DataClasses\EntityReference.cs (1)
638if (TargetRoleName == constraint.FromRole.Name) // Only do this on the dependent end
System\Data\Objects\DataClasses\RelatedEnd.cs (3)
473Debug.Assert(fkConstraint.FromRole.EdmEquals(_toEndProperty), "Source query for foreign key association related end is not based on principal or dependent?"); 1525if (constraint.FromRole == this._fromEndProperty) 1843else if (constraint.FromRole == FromEndProperty)
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1475if (constraint.FromRole.TypeUsage.EdmType == entitySet.ElementType.GetReferenceType())
System\Data\Objects\EntityEntry.cs (9)
179EntityType dependentType = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.FromRole); 2102var reference = RelationshipManager.GetRelatedEndInternal(dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name) as EntityReference; 2542dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name) as EntityReference; 2806if (constraint.FromRole.Name == thisRole) 3426dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name) as EntityReference; 3702EntityReference reference = RelationshipManager.GetRelatedEndInternal(dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name) as EntityReference; 3822relationships.Add(new Pair<string, string>(dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name)); 3863associationSet.ElementType.FullName, constraint.FromRole.Name) as EntityReference; 3889dependent.Item1.ElementType.FullName, dependent.Item2.FromRole.Name) as EntityReference;
System\Data\Objects\Internal\ForeignKeyFactory.cs (1)
81Debug.Assert(constraint.FromRole.Identity == relatedEnd.TargetRoleName, "Unexpected constraint role");
System\Data\Query\PlanCompiler\ConstraintManager.cs (1)
132md.AssociationEndMember fromEnd = constraint.FromRole as md.AssociationEndMember;
System\Data\SqlClient\SqlProviderUtilities.cs (1)
197var principalEnd = associationSet.AssociationSetEnds[constraint.FromRole.Name];
System.Data.Entity.Design (6)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
297WriteReferentialConstraintRoleElement(XmlConstants.PrincipalRole, constraint.FromRole, constraint.FromProperties);
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
143if (set.AssociationSetEnds[0].CorrespondingAssociationEndMember == constraint.FromRole) 447if (store.Name == constraint.FromRole.Name)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
962if (storeConstraint.FromRole.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne && 966return new KeyValuePair<string, RelationshipMultiplicity>(storeConstraint.FromRole.Name, RelationshipMultiplicity.One); 1002AssociationEndMember fromRole = session.MappingLookups.StoreAssociationEndMemberToModelAssociationEndMember[(AssociationEndMember)storeConstraint.FromRole];
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1939WriteReferentialConstraintChildElement(xmlWriter, XmlConstants.Principal, referentialConstraint.FromRole.Name, referentialConstraint.FromProperties);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
793if (candidate.FromRole.Name == endMember.Name)