4 writes to ToEndMember
System.Data.Entity (4)
System\Data\Metadata\Converter.cs (1)
833navigationProperty.ToEndMember = (RelationshipEndMember)relationshipType.Members[somNavigationProperty.ToEnd.Name];
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
565navigationProperty.ToEndMember = (RelationshipEndMember)relationshipType.Members[0]; 570navigationProperty.ToEndMember = (RelationshipEndMember)relationshipType.Members[1];
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
546navigationProperty.ToEndMember = (RelationshipEndMember)((RelationshipType)ospaceRelationship).Members.First(e => e.Name == cspaceProperty.ToEndMember.Name);
58 references to ToEndMember
System.Data.Entity (32)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
314"ToEndMemberName", navProp.ToEndMember.Name
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
152Visit(navigationProperty.ToEndMember);
System\Data\Metadata\Edm\EntityType.cs (3)
216navProperty.ToEndMember.Name == toName) 337navProperty.ToEndMember.Name + "*" + 338navProperty.ToEndMember.RelationshipMultiplicity + "*");
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
426bool needsSetter = cspaceProperty.ToEndMember.RelationshipMultiplicity != RelationshipMultiplicity.Many; 546navigationProperty.ToEndMember = (RelationshipEndMember)((RelationshipType)ospaceRelationship).Members.First(e => e.Name == cspaceProperty.ToEndMember.Name);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
388return GetRelatedEndInternal(navProp.RelationshipType.FullName, navProp.ToEndMember.Name);
System\Data\Objects\ELinq\InitializerFacet.cs (1)
486shaper, owner, coordinator, Expression.Constant(_navigationProperty.RelationshipType.FullName), Expression.Constant(_navigationProperty.ToEndMember.Name));
System\Data\Objects\EntityEntry.cs (4)
2137RelatedEnd relatedEnd = rm.GetRelatedEndInternal(n.RelationshipType.FullName, n.ToEndMember.Name); 2142if (n.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many) 2257RelatedEnd relatedEnd = this.WrappedEntity.RelationshipManager.GetRelatedEndInternal(n.RelationshipType.FullName, n.ToEndMember.Name); 2265if (n.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many)
System\Data\Objects\Internal\EntityProxyFactory.cs (5)
1102RelationshipMultiplicity multiplicity = navProperty.ToEndMember.RelationshipMultiplicity; 1180generator.Emit(OpCodes.Ldstr, navProperty.Key.ToEndMember.Name); 1210if (navProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many) 1359generator.Emit(OpCodes.Ldstr, navProperty.ToEndMember.Name); 1383generator.Emit(OpCodes.Ldstr, navProperty.ToEndMember.Name);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (2)
61navigationProperty.ToEndMember.Name), 71navigationProperty.ToEndMember.Name),
System\Data\Objects\Internal\LazyLoadBehavior.cs (4)
62RelationshipMultiplicity multiplicity = navProperty.ToEndMember.RelationshipMultiplicity; 79navProperty.ToEndMember.Identity, 87navProperty.ToEndMember.Identity, 124RelationshipMultiplicity multiplicity = navProperty.ToEndMember.RelationshipMultiplicity;
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (2)
201Debug.Assert(relationship.AssociationEndMembers.Contains(property.ToEndMember.Name), "Association does not declare member referenced by Navigation property?"); 202return relationship.AssociationEndMembers[property.ToEndMember.Name];
System\Data\Query\InternalTrees\Command.cs (2)
925RelProperty relProperty = new RelProperty(navProp.RelationshipType, navProp.FromEndMember, navProp.ToEndMember); 927RelProperty inverseRelProperty = new RelProperty(navProp.RelationshipType, navProp.ToEndMember, navProp.FromEndMember);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1225DbExpression navigationExpression = navigationSource.Navigate(navigationProperty.FromEndMember, navigationProperty.ToEndMember);
System\Data\Query\PlanCompiler\PreProcessor.cs (3)
975RelProperty relProperty = new RelProperty(navProperty.RelationshipType, navProperty.FromEndMember, navProperty.ToEndMember); 1250TypeUsage resultType = navProperty.ToEndMember.TypeUsage; 1255if (navProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many)
System.Data.Entity.Design (4)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
419_writer.WriteAttributeString(XmlConstants.ToRole, member.ToEndMember.Name);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
57CodeMemberProperty property = EmitNavigationProperty(Item.ToEndMember, false); 60if (Item.ToEndMember.RelationshipMultiplicity != RelationshipMultiplicity.Many) 63property = EmitNavigationProperty(Item.ToEndMember, true);
System.Data.Services (6)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (6)
139setEnd = associationSet.AssociationSetEnds[sourceNavigationProperty.ToEndMember.Name]; 149EntityType targetEntityType = (EntityType)((RefType)sourceNavigationProperty.ToEndMember.TypeUsage.EdmType).ElementType; 158if (navProperty.ToEndMember == sourceNavigationProperty.FromEndMember) 1746xmlWriter.WriteAttributeString(XmlConstants.ToRole, navProperty.ToEndMember.Name); 2408IRelatedEnd relatedEnd = stateEntry.RelationshipManager.GetRelatedEnd(navProperty.RelationshipType.Name, navProperty.ToEndMember.Name); 2595EdmType targetType = ((RefType)((NavigationProperty)member).ToEndMember.TypeUsage.EdmType).ElementType;
System.Data.Services.Design (3)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
51CodeMemberProperty property = EmitNavigationProperty(Item.ToEndMember); 54EmitField(typeDecl, GetReturnType(Item.ToEndMember), Item.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
System.Web.DynamicData (8)
DynamicData\ModelProviders\EFAssociationProvider.cs (8)
17EntityType otherEntityType = navigationProperty.ToEndMember.GetEntityType(); 21long key = BuildRelationshipKey(otherEntityType, navigationProperty.ToEndMember); 31EntityType value = (EntityType)navigationProperty.ToEndMember.TypeUsage.EdmType.MetadataProperties.Single(prop => prop.Name == "ElementType").Value; 35if (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many) { 82return (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne && 84(navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One && 104if (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne && 112ReferentialConstraint constraint = relationshipType.ReferentialConstraints.FirstOrDefault(c => c.ToRole == navigationProperty.ToEndMember);
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceColumn.cs (2)
365get { return navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne; } 437this.NavigationProperty.ToEndMember.Name);
System\Data\WebControls\EntityDataSourceUtil.cs (1)
811.Where(np => np.ToEndMember == end)
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (2)
617if (navProp.ToEndMember.RelationshipMultiplicity != RelationshipMultiplicity.Many) 619AssociationType associationType = navProp.ToEndMember.DeclaringType as AssociationType;