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