13 references to RelationMetadata
System.Data.Entity (13)
System\Data\Objects\DataClasses\EntityReference.cs (3)
466
ReferentialConstraint constraint = ((AssociationType)this.
RelationMetadata
).ReferentialConstraints[0];
571
ReferentialConstraint constraint = ((AssociationType)this.
RelationMetadata
).ReferentialConstraints[0];
637
ReferentialConstraint constraint = ((AssociationType)
RelationMetadata
).ReferentialConstraints.Single();
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
185
if (!((AssociationType)base.
RelationMetadata
).IsForeignKey && ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One)
606
foreach (ReferentialConstraint constraint in ((AssociationType)this.
RelationMetadata
).ReferentialConstraints)
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
861
ReferentialConstraint constraint = ((AssociationType)
RelationMetadata
).ReferentialConstraints.FirstOrDefault();
1488
foreach (ReferentialConstraint constraint in ((AssociationType)this.
RelationMetadata
).ReferentialConstraints)
1695
ReferentialConstraint constraint = ((AssociationType)
RelationMetadata
).ReferentialConstraints[0];
1805
foreach (ReferentialConstraint constraint in ((AssociationType)this.
RelationMetadata
).ReferentialConstraints)
2598
AssociationType associationType = this.
RelationMetadata
as AssociationType;
System\Data\Objects\EntityEntry.cs (1)
2212
var constraint = ((AssociationType)relatedEnd.
RelationMetadata
).ReferentialConstraints[0];
System\Data\Objects\Internal\ForeignKeyFactory.cs (1)
80
ReferentialConstraint constraint = ((AssociationType)relatedEnd.
RelationMetadata
).ReferentialConstraints.First();
System\Data\Objects\ObjectStateManager.cs (1)
3264
foreach (ReferentialConstraint constraint in ((AssociationType)reference.
RelationMetadata
).ReferentialConstraints)